diff options
author | rsiddharth <s@ricketyspace.net> | 2019-02-02 14:30:42 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-02-02 14:30:42 -0500 |
commit | 4ccf736c24421e0e412da2e345c0d72d7a98ce30 (patch) | |
tree | 9e876dc36a2528a079744180b2d2dd3af30ae6c7 | |
parent | 5cdd03cd97a107537f3bf154c97ea82d5c46ca02 (diff) |
sicp.org: Add Ex. 2.25.
-rw-r--r-- | sicp.org | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -514,3 +514,19 @@ creates a list with the squared numbers in a messy nested list like: / \ 3 4 #+END_EXAMPLE +*** 25 +#+BEGIN_SRC scheme +(define one '(1 3 (5 7) 9)) + +(car (cdr (car (cdr (cdr one))))) +#+END_SRC +#+BEGIN_SRC scheme +(define two '((7))) + +(car (car two)) +#+END_SRC +#+BEGIN_SRC scheme +(define three '(1 (2 (3 (4 (5 (6 7))))))) + +(car (cdr (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr three)))))))))))) +#+END_SRC |