diff options
| author | rsiddharth <s@ricketyspace.net> | 2018-12-29 00:07:33 -0500 |
|---|---|---|
| committer | rsiddharth <s@ricketyspace.net> | 2018-12-29 00:07:33 -0500 |
| commit | 5a9d30934588cb67206611a5d2dbc8dd36972bce (patch) | |
| tree | 97c147d43380c6054ec1e2e5bc14c16c0570c5bf | |
| parent | 4bb59df548b0e722556430393936abaa52849795 (diff) | |
sicp.org: Add notes for ex2.22.
| -rw-r--r-- | sicp.org | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -459,3 +459,15 @@ applicative order (gcd 2 0) 2 #+END_EXAMPLE +** 2 +*** 22 +#+BEGIN_SRC scheme +(cons ... (cons (cons LIST NUMBER²) NUMBER²) NUMBER²) +#+END_SRC + +creates a list with the squared numbers in a messy nested list like: + +#+BEGIN_SRC scheme +(square-list '(1 2 3 4 5)) +;; $3 = (((((() . 1) . 4) . 9) . 16) . 25) +#+END_SRC |
