You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
269 B
17 lines
269 B
2 years ago
|
|
||
|
Exercise 3.20: Draw environment diagrams to
|
||
|
illustrate the evaluation of the sequence of expressions
|
||
|
|
||
|
|
||
|
(define x (cons 1 2))
|
||
|
(define z (cons x x))
|
||
|
|
||
|
(set-car! (cdr z) 17)
|
||
|
|
||
|
(car x)
|
||
|
17
|
||
|
|
||
|
|
||
|
using the procedural implementation of pairs given above. (Compare
|
||
|
Exercise 3.11.)
|