On Mon, 15 Nov 1999 11:44:15 -0600, MJ Lee <·····@nwu.edu> wrote:
>is there any function that switch teh content of 2 int or list?
>or i have to wirte by my self?
>
>
rotatef ?
--
Kenneth P. Turvey <······@SprocketShop.com>
--------------------------------------------
The optimist thinks this is the best of all possible worlds. The
pessimist fears it is true.
-- Robert Oppenheimer
In article <··········@news.acns.nwu.edu>, MJ Lee <·····@nwu.edu> wrote:
>is there any function that switch teh content of 2 int or list?
>or i have to wirte by my self?
Not a function, but a macro:
(rotatef <place1> <place2>)
It can't be done using a function, due to Lisp's call-by-value nature.
--
Barry Margolin, ······@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.