[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DISPLACE
- To: bug-lisp at MIT-MC
- Subject: DISPLACE
- From: GLS at SU-AI (Guy Steele)
- Date: Thu, 15 Jun 78 20:29:00 GMT
- Original-date: 15 Jun 1978 1329-PDT
DISPLACE ought to have a definition something like this:
(DEFUN DISPLACE (X Y)
(COND ((ATOM Y) Y)
((ATOM X) Y) ;or error
(T (RPLACA X (CAR Y))
(RPLACD X (CDR Y))
X))))
Then again, what about Stallman's theory of:
(DEFUN DISPLACE (X Y)
(COND ((ATOM X) Y)
(T (RPLACD X (LIST (CONS (CAR X) (CDR X)) Y))
(RPLACA X 'DISPLACED)
X)))
(DEFUN DISPLACED FEXPR (X) (CADR X))
?
-------