clojure-koans/koans/path_to_enlightenment.clj

24 lines
597 B
Clojure
Raw Normal View History

(ns koans.path-to-enlightenment
(:use clojure.test))
(def __ nil)
(defmacro meditations [& forms]
(let [pairs (partition 2 forms)]
`(do
~@(doall (map
(fn [[doc# code#]]
`(when-not (is ~code# ~doc#)
(System/exit 1)))
pairs)))))
2010-02-06 22:00:08 +00:00
(load "about_equalities")
(load "about_vectors")
2010-02-06 23:43:06 +00:00
(load "about_sets")
2010-02-08 04:29:31 +00:00
(load "about_maps")
2010-02-09 04:57:08 +00:00
(load "about_functions")
2010-02-09 23:37:22 +00:00
(load "about_conditionals")
2010-02-11 04:13:55 +00:00
(load "about_higher_order_functions")
2010-02-14 00:19:13 +00:00
(load "about_runtime_polymorphism")
2010-02-08 04:29:31 +00:00
(println "You have acheived clojure enlightenment. Namaste.")