From: Ramakrishnan Muthukrishnan Date: Mon, 22 Mar 2010 19:20:34 +0000 (+0530) Subject: renaming to ch1_1 to reflect chapter and section X-Git-Url: https://git.rkrishnan.org/FOOURL?a=commitdiff_plain;h=61d44c633ad37e72f70d4dd3256c76600664380e;p=sicp.git renaming to ch1_1 to reflect chapter and section --- diff --git a/ch1/ch1_1.clj b/ch1/ch1_1.clj new file mode 100644 index 0000000..a0a00a7 --- /dev/null +++ b/ch1/ch1_1.clj @@ -0,0 +1,9 @@ +(ns sicp.ch1.ch1_1) + +(defn square [x] (* x x)) + +(defn sum-of-squares [x y] + (+ (square x) (square y))) + +(defn f [a] + (sum-of-squares (+ a 1) (* a 2))) \ No newline at end of file diff --git a/ch1/square.clj b/ch1/square.clj deleted file mode 100644 index 5671487..0000000 --- a/ch1/square.clj +++ /dev/null @@ -1,9 +0,0 @@ -(ns sicp-clj.ch1) - -(defn square [x] (* x x)) - -(defn sum-of-squares [x y] - (+ (square x) (square y))) - -(defn f [a] - (sum-of-squares (+ a 1) (* a 2))) \ No newline at end of file