--- /dev/null
+This is the namespace for SICP examples, exercises and problems.
--- /dev/null
+(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
--- /dev/null
+(ns sicp-clj)
+
+(defn argue [sentence]
+ (when-not (empty? sentence)
+ (concat (opposite (first sentence)) (argue (rest sentence)))))
+
+(defn opposite [word]
+ (cond (= word "like") "hate"
+ (= word "hate") "like"
+ (= word "wonderful") "terrible"
+ (= word "terrible") "wonderful"
+ :else word))
\ No newline at end of file
--- /dev/null
+;; from Brian Harvey's Spring 2008 lecture 01.
+(defn plural [wd]
+ (if (= (last wd) \y)
+ (apply str (concat (butlast wd) "ies"))
+ (apply str (concat wd "s"))))
\ No newline at end of file