Eli Barzilay <[email protected]> writes: > On Aug 25, Jim Wise wrote: >> Matthias Felleisen <[email protected]> writes: >> >> > Open DrRacket, choose Language, click radio button "Use the language >> > declared in the source", type >> > >> > #lang r6rs >> >> Once you do this, IIRC, all of the examples in TSPL4 work in >> DrRacket except for those that use set-car! and set-cdr!, since >> Racket (by design) does not allow mutable pairs. > > In the r6rs language you get the mutable pairs by default: > > #!r6rs > > (import (rnrs) (rnrs mutable-pairs)) > > (write (let ([x (list 'a 'b 'c)]) > (set-car! x 1) > x))
Oh, hmm -- I must have been doing something wrong, then.
--
Jim Wise
[email protected]
pgpW7BieHB8tZ.pgp
Description: PGP signature
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

