You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
clojure-koans/koans/path_to_enlightenment.clj

25 lines
636 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")
(load "about_conditionals")
(load "about_higher_order_functions")
(load "about_runtime_polymorphism")
(load "about_sequence_comprehensions")
(println "You have acheived clojure enlightenment. Namaste.")