From b6c0b70de18606fa81f50b56479056abdb922b26 Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Mon, 12 Jul 2010 18:19:54 -0500 Subject: [PATCH] modularize runner script --- src/path_to_enlightenment.clj | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/path_to_enlightenment.clj b/src/path_to_enlightenment.clj index be90990..d56873b 100644 --- a/src/path_to_enlightenment.clj +++ b/src/path_to_enlightenment.clj @@ -13,7 +13,8 @@ (System/exit 0))) pairs)))) -(load "equalities" +(def ordered-koans + ["equalities" "lists" "vectors" "sets" @@ -23,6 +24,10 @@ "higher_order_functions" "runtime_polymorphism" "sequence_comprehensions" - "partial_functions") + "partial_functions"]) -(println "You have achieved clojure enlightenment. Namaste.") +(defn run [] + (apply load ordered-koans) + (println "You have achieved clojure enlightenment. Namaste.")) + +(run)