From b8e79424d3b5937daa752ab9e30122a10d56b5ea Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan <vu3rdd@gmail.com> Date: Sat, 10 Jul 2010 12:26:14 +0530 Subject: [PATCH] solution to 2.26 --- src/sicp/ex2_26.clj | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/sicp/ex2_26.clj diff --git a/src/sicp/ex2_26.clj b/src/sicp/ex2_26.clj new file mode 100644 index 0000000..0825ed8 --- /dev/null +++ b/src/sicp/ex2_26.clj @@ -0,0 +1,15 @@ +(ns sicp.ex2_26) + +(def x (list 1 2 3)) +(def y (list 4 5 6)) + +;; (append x y) will produce (1 2 3 4 5 6) +;; (cons x y) will produce ((1 2 3) 4 5 6) +;; (lis x y) => ((1 2 3) (4 5 6)) + +(concat 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)) \ No newline at end of file -- 2.45.2