diff options
author | rsiddharth <s@ricketyspace.net> | 2019-06-09 16:35:15 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-06-09 16:35:15 -0400 |
commit | 5dc212c708d960580ab5fd285720b42ee65ed8a1 (patch) | |
tree | bf49070f6765010f1343b86d9afdac36a1b7f64c | |
parent | 4ccf736c24421e0e412da2e345c0d72d7a98ce30 (diff) |
sicp.org: Add Ex. 2.26.
-rw-r--r-- | sicp.org | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -530,3 +530,17 @@ creates a list with the squared numbers in a messy nested list like: (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr three)))))))))))) #+END_SRC +*** 26 +#+BEGIN_SRC scheme +(define x (list 1 2 3)) +(define y (list 4 5 6)) + +(append x y) +'(1 2 3 4 5 6) + +(cons x y) +'((1 2 3) (4 5 6)) + +(list x y) +'((1 2 3) (4 5 6)) +#+END_SRC |