Note: this wiki is now retired and will no longer be updated!

The static final versions of the pages are left as a convenience for readers. Note that meta-pages such as "discussion," "history," etc., will not work.

SICP exercise 2.24

From Drewiki
Jump to: navigation, search

Problem

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).

Solution

The result of evaluating the expression above in the interpreter is

(1 (2 (3 4)))

I'm too lazy to do the graphs for the other two parts.

Personal tools