diff --git a/resources/koans.clj b/resources/koans.clj index 6da420d..41ce830 100644 --- a/resources/koans.clj +++ b/resources/koans.clj @@ -1,4 +1,4 @@ -[["01-equalities" {"__" [true +[["01_equalities" {"__" [true 2 7 5 @@ -7,7 +7,7 @@ 6/3 3]}] - ["02-lists" {"__" [1 2 3 4 5 + ["02_lists" {"__" [1 2 3 4 5 1 [2 3 4 5] () @@ -18,7 +18,7 @@ "No dice!" ()]}] - ["03-vectors" {"__" [1 + ["03_vectors" {"__" [1 [] [1] [nil] @@ -30,14 +30,14 @@ [:butter :and] 3]}] - ["04-sets" {"__" [nil + ["04_sets" {"__" [nil 3 #{1 2 3 4 5} #{1 2 3 4 5} #{2 3} #{1 4}]}] - ["05-maps" {"__" [{} + ["05_maps" {"__" [{} 0 1 2 @@ -53,8 +53,8 @@ 1 "January" 2006 2010 2014 "Vancouver"]}] - - ["06-functions" {"__" [20 + + ["06_functions" {"__" [20 10 5 30 2 15 @@ -62,7 +62,7 @@ "___" [(fn [f] (f 5)) (fn [f] (f 5))]}] - ["07-conditionals" {"__" [:a + ["07_conditionals" {"__" [:a [] nil :glory @@ -71,7 +71,7 @@ :cocked-pistol :say-what?]}] - ["08-higher_order_functions" {"__" [4 8 12 + ["08_higher_order_functions" {"__" [4 8 12 (* x x) [false false true false false] () @@ -82,14 +82,14 @@ 100 (count a) (count b)]}] - ["09-runtime_polymorphism" {"__" [(str (:name a) " eats veggies.") + ["09_runtime_polymorphism" {"__" [(str (:name a) " eats veggies.") (str (:name a) " eats animals.") (str "I don't know what " (:name a) " eats.") "Hello World!" "Hello, you silly world." "Hello to this group: Peter, Paul, Mary!" ]}] - ["10-lazy_sequences" {"__" [[1 2 3 4] + ["10_lazy_sequences" {"__" [[1 2 3 4] [0 1 2 3 4] 10 95 @@ -97,14 +97,14 @@ :a] "___" [(fn [x] :foo)]}] - ["11-sequence_comprehensions" {"__" [[0 1 2 3 4 5] + ["11_sequence_comprehensions" {"__" [[0 1 2 3 4 5] (* index index) (range 10) (odd? index) (* index index) [row column] ]}] - ["12-creating_functions" {"__" [true false true + ["12_creating_functions" {"__" [true false true 4 :a :b :c :d :c :d @@ -114,7 +114,7 @@ multiply-by-5 (comp dec square)]}] - ["13-recursion" {"__" [true + ["13_recursion" {"__" [true acc (loop [coll coll acc ()] @@ -128,7 +128,7 @@ (recur (dec n) (* acc n))))] "___" [not]}] - ["14-destructuring" {"__" [":bar:foo" + ["14_destructuring" {"__" [":bar:foo" (format (str "First comes %s, " "then comes %s, " "then comes %s with the baby carriage") @@ -150,7 +150,7 @@ street-address ", " city ", " state)) ]}] - ["15-refs" {"__" ["hello" + ["15_refs" {"__" ["hello" "hello" "better" "better!!!" @@ -159,7 +159,7 @@ ] "___" [(fn [x] (+ 20 x))]}] - ["16-atoms" {"__" [0 + ["16_atoms" {"__" [0 1 (swap! atomic-clock (partial + 4)) 20 @@ -167,7 +167,7 @@ atomic-clock 20 :fin ]}] - ["17-macros" {"__" [~(first form) + ["17_macros" {"__" [~(first form) ~(nth form 2) form (drop 2 form) @@ -177,7 +177,7 @@ '(* 10 2) '(+ 10 (2 * 3))]}] - ["18-datatypes" {"__" [(print + ["18_datatypes" {"__" [(print (str "You're really the " (.category this) ", " recipient "... sorry.")) @@ -189,7 +189,7 @@ (str "Congratulations on your Best Picture Oscar, " "Evil Alien Conquerors!")]}] - ["19-java_interop" {"__" [java.lang.String + ["19_java_interop" {"__" [java.lang.String "SELECT * FROM" 10 1024 diff --git a/src/koans/01-equalities.clj b/src/koans/01_equalities.clj similarity index 100% rename from src/koans/01-equalities.clj rename to src/koans/01_equalities.clj diff --git a/src/koans/02-lists.clj b/src/koans/02_lists.clj similarity index 100% rename from src/koans/02-lists.clj rename to src/koans/02_lists.clj diff --git a/src/koans/03-vectors.clj b/src/koans/03_vectors.clj similarity index 100% rename from src/koans/03-vectors.clj rename to src/koans/03_vectors.clj diff --git a/src/koans/04-sets.clj b/src/koans/04_sets.clj similarity index 100% rename from src/koans/04-sets.clj rename to src/koans/04_sets.clj diff --git a/src/koans/05-maps.clj b/src/koans/05_maps.clj similarity index 100% rename from src/koans/05-maps.clj rename to src/koans/05_maps.clj diff --git a/src/koans/06-functions.clj b/src/koans/06_functions.clj similarity index 100% rename from src/koans/06-functions.clj rename to src/koans/06_functions.clj diff --git a/src/koans/07-conditionals.clj b/src/koans/07_conditionals.clj similarity index 100% rename from src/koans/07-conditionals.clj rename to src/koans/07_conditionals.clj diff --git a/src/koans/08-higher_order_functions.clj b/src/koans/08_higher_order_functions.clj similarity index 100% rename from src/koans/08-higher_order_functions.clj rename to src/koans/08_higher_order_functions.clj diff --git a/src/koans/09-runtime_polymorphism.clj b/src/koans/09_runtime_polymorphism.clj similarity index 100% rename from src/koans/09-runtime_polymorphism.clj rename to src/koans/09_runtime_polymorphism.clj diff --git a/src/koans/10-lazy_sequences.clj b/src/koans/10_lazy_sequences.clj similarity index 100% rename from src/koans/10-lazy_sequences.clj rename to src/koans/10_lazy_sequences.clj diff --git a/src/koans/11-sequence_comprehensions.clj b/src/koans/11_sequence_comprehensions.clj similarity index 100% rename from src/koans/11-sequence_comprehensions.clj rename to src/koans/11_sequence_comprehensions.clj diff --git a/src/koans/12-creating_functions.clj b/src/koans/12_creating_functions.clj similarity index 100% rename from src/koans/12-creating_functions.clj rename to src/koans/12_creating_functions.clj diff --git a/src/koans/13-recursion.clj b/src/koans/13_recursion.clj similarity index 100% rename from src/koans/13-recursion.clj rename to src/koans/13_recursion.clj diff --git a/src/koans/14-destructuring.clj b/src/koans/14_destructuring.clj similarity index 100% rename from src/koans/14-destructuring.clj rename to src/koans/14_destructuring.clj diff --git a/src/koans/15-refs.clj b/src/koans/15_refs.clj similarity index 100% rename from src/koans/15-refs.clj rename to src/koans/15_refs.clj diff --git a/src/koans/16-atoms.clj b/src/koans/16_atoms.clj similarity index 100% rename from src/koans/16-atoms.clj rename to src/koans/16_atoms.clj diff --git a/src/koans/17-macros.clj b/src/koans/17_macros.clj similarity index 100% rename from src/koans/17-macros.clj rename to src/koans/17_macros.clj diff --git a/src/koans/18-datatypes.clj b/src/koans/18_datatypes.clj similarity index 100% rename from src/koans/18-datatypes.clj rename to src/koans/18_datatypes.clj diff --git a/src/koans/19-java_interop.clj b/src/koans/19_java_interop.clj similarity index 100% rename from src/koans/19-java_interop.clj rename to src/koans/19_java_interop.clj