using new :main leiningen key

This commit is contained in:
Colin Jones
2010-04-02 17:47:32 -05:00
parent b55303714c
commit 896289b64e
3 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
(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 0)))
pairs)))))
(load "about_equalities")
(load "about_lists")
(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.")