SICP-answers icon indicating copy to clipboard operation
SICP-answers copied to clipboard

Exercise 2.24 中的Box-and-pointer structure 结果有误

Open strint opened this issue 10 years ago • 1 comments

每个list中的最后一个元素是个pair,并且该pair的cdr是nil

strint avatar Aug 08 '14 16:08 strint

雖然隔很久了,但還是註記一下。 個人認為 (cons 1 (cons 2 (cons 3 4))) 會成為

**-**-**
1  2  34

而 (list 1 (list 2 (list 3 4))) 會成為

**-*/
1  |
   **-*/
   2  |
      **-*/
      3  4

應該沒錯吧… 這裡有別人做的完整圖片

KirkSuD avatar Sep 10 '19 14:09 KirkSuD