diff options
author | rsiddharth <s@ricketyspace.net> | 2019-01-26 16:32:47 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-01-26 16:32:47 -0500 |
commit | 5cdd03cd97a107537f3bf154c97ea82d5c46ca02 (patch) | |
tree | 78dc1b87cab6fe8762dc96187a2f644bb351fa6d | |
parent | 0096e0afff9c53c48be6686edfc83d80ecdeac1e (diff) |
sicp.org: Add Ex. 2.24.
-rw-r--r-- | sicp.org | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -471,3 +471,46 @@ creates a list with the squared numbers in a messy nested list like: (square-list '(1 2 3 4 5)) ;; $3 = (((((() . 1) . 4) . 9) . 16) . 25) #+END_SRC +*** 24 +#+BEGIN_EXAMPLE +(1 (2 (3 4))) + + + +----+----+ +----+----+ +----+----+ +----+----+ + | o | o--|----->| o | o--|----->| o | o--|----->| o | / | + +----+----+ +----+----+ +----+----+ +----+----+ + | | | | + | | | | + v v v v + +----+ +----+ +----+ +----+ + | 1 | | 2 | | 3 | | 4 | + +----+ +----+ +----+ +----+ + + + (1 (2 (3 4))) + o + / \ + / \ + / \ + / \ + / \ + 1 \ + \ (2 (3 4)) + o + / \ + / \ + / \ + / \ + / \ + / \ + 2 \ + \ (3 4) + o + / \ + / \ + / \ + / \ + / \ + / \ + 3 4 +#+END_EXAMPLE |