灯下 登录
计算机科学 / SICP / 2.2.2 Hierarchical Structures

Exercise 2.24 · 习题

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

练习 2.24:假设我们对表达式 (list 1 (list 2 (list 3 4))) 求值。给出解释器打印的结果、对应的盒指针结构,以及将其解读为树(如图 2.6)的方式。