Subject: Re: simple swap func
From: Erik Naggum <erik@naggum.no>
Date: 1997/04/18
Newsgroups: comp.lang.lisp
Message-ID: <3070385743051540@naggum.no>


* Christopher J. Vogt
| How about "parallel setq":
| (psetq a b b a)

`psetq' is also a macro, and at least in one implementation results in
_exactly_ the same code as `rotatef'.

but while we're on it...

    (multiple-value-setq (a b) (values b a))

which also results in exactly same code as `rotatef'...

#\Erik
-- 
I'm no longer young enough to know everything.