From f9793009402dbd80f008fb67c010d3f839cfcbdc Mon Sep 17 00:00:00 2001 From: Aaron Bedra Date: Tue, 9 Feb 2010 22:20:57 -0500 Subject: [PATCH 1/2] adding swank to the lein deps --- project.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/project.clj b/project.clj index a9c3fa2..cc17781 100644 --- a/project.clj +++ b/project.clj @@ -3,6 +3,7 @@ :script "koans/path_to_enlightenment.clj" :dependencies [[org.clojure/clojure "1.1.0"] [org.clojure/clojure-contrib "1.0-SNAPSHOT"] + [org.clojure/swank-clojure "1.0"] [jline "0.9.94"]] :dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"] [leiningen-run "0.3"]] From fe7f46753b769979088e8017ff2e9183448423bc Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Wed, 10 Feb 2010 07:37:22 +0800 Subject: [PATCH 2/2] adding about conditionals --- koans/about_conditionals.clj | 10 ++++++++++ koans/path_to_enlightenment.clj | 1 + 2 files changed, 11 insertions(+) create mode 100644 koans/about_conditionals.clj diff --git a/koans/about_conditionals.clj b/koans/about_conditionals.clj new file mode 100644 index 0000000..7dbe6b6 --- /dev/null +++ b/koans/about_conditionals.clj @@ -0,0 +1,10 @@ +(meditations + "Your will face many decisions" + (= __ (if (false? (= 4 5)) :a :b)) + + "Some of them leave you no alternative" + (= __ (if (> 4 3) [])) + + "And in such a case you may have nothing" + (= nil (if (nil? __) [:a :b :c]))) + diff --git a/koans/path_to_enlightenment.clj b/koans/path_to_enlightenment.clj index 745524a..67dfb52 100644 --- a/koans/path_to_enlightenment.clj +++ b/koans/path_to_enlightenment.clj @@ -17,4 +17,5 @@ (load "about_sets") (load "about_maps") (load "about_functions") +(load "about_conditionals") (println "You have acheived clojure enlightenment. Namaste.")