Steve
Steve

Reputation: 31

Is there an equivalent in DrRacket to set-car! and set-cdr! in SICP?

Is there an equivalent in DrRacket to set-car! and set-cdr! in SICP?

Upvotes: 3

Views: 1752

Answers (2)

Eli Barzilay
Eli Barzilay

Reputation: 29554

If you want to go through SICP with Racket, you should use Neil's package that makes it easier -- you'd get a language with set-car! and set-cdr!.

Upvotes: 5

mqp
mqp

Reputation: 72015

Yes, but you need to use mutable pairs.

Upvotes: 0

Related Questions