Skip to content

Commit

Permalink
exercise 2.24
Browse files Browse the repository at this point in the history
  • Loading branch information
bmabey committed Oct 31, 2009
1 parent a4b2fa8 commit 1b35fe8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scheme/week05/ex2_24.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
; 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)
;
; It would evaluate to:
; (1 (2 (3 4)))
;
; ASCII art FTW:
;
; (1 (2 (3 4)))
; /\
; 1 (2 (3 4))
; / \
; 2 (3 4)
; / \
; 3 4

0 comments on commit 1b35fe8

Please sign in to comment.