adding about conditionals
This commit is contained in:
parent
f4a6803ce5
commit
3f0be59af6
10
koans/about_conditionals.clj
Normal file
10
koans/about_conditionals.clj
Normal file
@ -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])))
|
||||||
|
|
@ -17,4 +17,5 @@
|
|||||||
(load "about_sets")
|
(load "about_sets")
|
||||||
(load "about_maps")
|
(load "about_maps")
|
||||||
(load "about_functions")
|
(load "about_functions")
|
||||||
|
(load "about_conditionals")
|
||||||
(println "You have acheived clojure enlightenment. Namaste.")
|
(println "You have acheived clojure enlightenment. Namaste.")
|
||||||
|
Loading…
Reference in New Issue
Block a user