21 lines
495 B
Clojure
21 lines
495 B
Clojure
(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)))))
|
|
|
|
(load "about_equalities")
|
|
(load "about_vectors")
|
|
(load "about_sets")
|
|
(load "about_maps")
|
|
(load "about_functions")
|
|
(println "You have acheived clojure enlightenment. Namaste.")
|