RosettaCodeData/Task/Generic-swap/TXR/generic-swap-2.txr
2023-07-01 13:44:08 -04:00

7 lines
196 B
Text

(defmacro swp (left right)
(with-gensyms (tmp lpl rpl)
^(placelet ((,lpl ,left)
(,rpl ,right))
(let ((,tmp ,lpl))
(set ,lpl ,rpl
,rpl ,tmp)))))