From 3f0be59af61669ff8b9c930fd1d0d8d1b459c748 Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Tue, 9 Feb 2010 17:37:22 -0600 Subject: [PATCH] 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.")