Dan's Thoughts Thinking somewhat carefully

9Aug/090

Exercise 2.24 of SICP

Exercise 2.24: Suppose we evaluate the expression (list 1 (list 2 (list 3 4))). Give the result printed by the interpreter, the corresponding box-and-pointer structure, and the interpretation of this as a tree (as in figure 2.6).

(1 (2 (3 4)))
1
2
3
4
5
[1 *]->[* /]
       |
       [2 *]->[* /]
              |
              [3 *]->[4 /]
Filed under: lisp, SICP Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

Spam protection by WP Captcha-Free

No trackbacks yet.