adding about conditionals
This commit is contained in:
		
							
								
								
									
										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_maps") | ||||
| (load "about_functions") | ||||
| (load "about_conditionals") | ||||
| (println "You have acheived clojure enlightenment. Namaste.") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user