diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-08 15:48:56 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-08 15:48:56 +0200 |
commit | 947f0ecbdeb98e4b5f53c68cb62e7d9cfcf03c60 (patch) | |
tree | 9a2b277c808b93bbb7d90c68dd860645bb29b1b2 /list-functions.lisp | |
parent | 0654d8d1017b202c5aa250c77626c54bf571a354 (diff) |
Replace SET-CAR and SET-CDR with RPLACA and RPLACD.
Diffstat (limited to 'list-functions.lisp')
-rw-r--r-- | list-functions.lisp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/list-functions.lisp b/list-functions.lisp index 9593118..464a9a4 100644 --- a/list-functions.lisp +++ b/list-functions.lisp @@ -164,5 +164,18 @@ ;;;;----------------------------------------------------------------- +;;;; ACCESSORS +;;;;----------------------------------------------------------------- +(shadow '(rplaca rplacd)) +(unexport '(sys::rplaca sys::rplacd) (find-package :sys)) + +(%defun rplaca args + (sys::rplaca (first args) (second args))) + +(%defun rplacd args + (sys::rplacd (first args) (second args))) + + +;;;;----------------------------------------------------------------- (export '(cons car cdr list* first second third fourth fifth sixth - seventh eigthth ninth tenth consp listp null)) + seventh eigthth ninth tenth consp listp null rplaca rplacd)) |