From: MJ Lee
Subject: any function switch 2 object
Date: 
Message-ID: <80pgur$ils@news.acns.nwu.edu>
is there any function that switch teh content of 2 int or list?
or i have to wirte by my self?

From: Kenneth P. Turvey
Subject: Re: any function switch 2 object
Date: 
Message-ID: <slrn831707.e6l.kt-alt@pug1.sprocketshop.com>
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
From: Barry Margolin
Subject: Re: any function switch 2 object
Date: 
Message-ID: <5q0Y3.82$6v5.1937@burlma1-snr2>
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.