From d7c093d2c8e3662b5ca00037f2ba8a71a81c6bb0 Mon Sep 17 00:00:00 2001 From: Noam Yorav-Raphael Date: Thu, 7 Jun 2012 00:24:21 +0300 Subject: [PATCH] Rename koan files to start with a number, to give the learner a feeling of progress. --- resources/koans.clj | 38 +++++++++---------- .../{equalities.clj => 01-equalities.clj} | 0 src/koans/{lists.clj => 02-lists.clj} | 0 src/koans/{vectors.clj => 03-vectors.clj} | 0 src/koans/{sets.clj => 04-sets.clj} | 0 src/koans/{maps.clj => 05-maps.clj} | 0 src/koans/{functions.clj => 06-functions.clj} | 0 .../{conditionals.clj => 07-conditionals.clj} | 0 ...ions.clj => 08-higher_order_functions.clj} | 0 ...rphism.clj => 09-runtime_polymorphism.clj} | 0 ...zy_sequences.clj => 10-lazy_sequences.clj} | 0 ...ons.clj => 11-sequence_comprehensions.clj} | 0 ...unctions.clj => 12-creating_functions.clj} | 0 src/koans/{recursion.clj => 13-recursion.clj} | 0 ...destructuring.clj => 14-destructuring.clj} | 0 src/koans/{refs.clj => 15-refs.clj} | 0 src/koans/{atoms.clj => 16-atoms.clj} | 0 src/koans/{macros.clj => 17-macros.clj} | 0 src/koans/{datatypes.clj => 18-datatypes.clj} | 0 .../{java_interop.clj => 19-java_interop.clj} | 0 20 files changed, 19 insertions(+), 19 deletions(-) rename src/koans/{equalities.clj => 01-equalities.clj} (100%) rename src/koans/{lists.clj => 02-lists.clj} (100%) rename src/koans/{vectors.clj => 03-vectors.clj} (100%) rename src/koans/{sets.clj => 04-sets.clj} (100%) rename src/koans/{maps.clj => 05-maps.clj} (100%) rename src/koans/{functions.clj => 06-functions.clj} (100%) rename src/koans/{conditionals.clj => 07-conditionals.clj} (100%) rename src/koans/{higher_order_functions.clj => 08-higher_order_functions.clj} (100%) rename src/koans/{runtime_polymorphism.clj => 09-runtime_polymorphism.clj} (100%) rename src/koans/{lazy_sequences.clj => 10-lazy_sequences.clj} (100%) rename src/koans/{sequence_comprehensions.clj => 11-sequence_comprehensions.clj} (100%) rename src/koans/{creating_functions.clj => 12-creating_functions.clj} (100%) rename src/koans/{recursion.clj => 13-recursion.clj} (100%) rename src/koans/{destructuring.clj => 14-destructuring.clj} (100%) rename src/koans/{refs.clj => 15-refs.clj} (100%) rename src/koans/{atoms.clj => 16-atoms.clj} (100%) rename src/koans/{macros.clj => 17-macros.clj} (100%) rename src/koans/{datatypes.clj => 18-datatypes.clj} (100%) rename src/koans/{java_interop.clj => 19-java_interop.clj} (100%) diff --git a/resources/koans.clj b/resources/koans.clj index 8b9dded..6da420d 100644 --- a/resources/koans.clj +++ b/resources/koans.clj @@ -1,4 +1,4 @@ -[["equalities" {"__" [true +[["01-equalities" {"__" [true 2 7 5 @@ -7,7 +7,7 @@ 6/3 3]}] - ["lists" {"__" [1 2 3 4 5 + ["02-lists" {"__" [1 2 3 4 5 1 [2 3 4 5] () @@ -18,7 +18,7 @@ "No dice!" ()]}] - ["vectors" {"__" [1 + ["03-vectors" {"__" [1 [] [1] [nil] @@ -30,14 +30,14 @@ [:butter :and] 3]}] - ["sets" {"__" [nil + ["04-sets" {"__" [nil 3 #{1 2 3 4 5} #{1 2 3 4 5} #{2 3} #{1 4}]}] - ["maps" {"__" [{} + ["05-maps" {"__" [{} 0 1 2 @@ -54,7 +54,7 @@ 2006 2010 2014 "Vancouver"]}] - ["functions" {"__" [20 + ["06-functions" {"__" [20 10 5 30 2 15 @@ -62,7 +62,7 @@ "___" [(fn [f] (f 5)) (fn [f] (f 5))]}] - ["conditionals" {"__" [:a + ["07-conditionals" {"__" [:a [] nil :glory @@ -71,7 +71,7 @@ :cocked-pistol :say-what?]}] - ["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)]}] - ["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!" ]}] - ["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)]}] - ["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] ]}] - ["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)]}] - ["recursion" {"__" [true + ["13-recursion" {"__" [true acc (loop [coll coll acc ()] @@ -128,7 +128,7 @@ (recur (dec n) (* acc n))))] "___" [not]}] - ["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)) ]}] - ["refs" {"__" ["hello" + ["15-refs" {"__" ["hello" "hello" "better" "better!!!" @@ -159,7 +159,7 @@ ] "___" [(fn [x] (+ 20 x))]}] - ["atoms" {"__" [0 + ["16-atoms" {"__" [0 1 (swap! atomic-clock (partial + 4)) 20 @@ -167,7 +167,7 @@ atomic-clock 20 :fin ]}] - ["macros" {"__" [~(first form) + ["17-macros" {"__" [~(first form) ~(nth form 2) form (drop 2 form) @@ -177,7 +177,7 @@ '(* 10 2) '(+ 10 (2 * 3))]}] - ["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!")]}] - ["java_interop" {"__" [java.lang.String + ["19-java_interop" {"__" [java.lang.String "SELECT * FROM" 10 1024 diff --git a/src/koans/equalities.clj b/src/koans/01-equalities.clj similarity index 100% rename from src/koans/equalities.clj rename to src/koans/01-equalities.clj diff --git a/src/koans/lists.clj b/src/koans/02-lists.clj similarity index 100% rename from src/koans/lists.clj rename to src/koans/02-lists.clj diff --git a/src/koans/vectors.clj b/src/koans/03-vectors.clj similarity index 100% rename from src/koans/vectors.clj rename to src/koans/03-vectors.clj diff --git a/src/koans/sets.clj b/src/koans/04-sets.clj similarity index 100% rename from src/koans/sets.clj rename to src/koans/04-sets.clj diff --git a/src/koans/maps.clj b/src/koans/05-maps.clj similarity index 100% rename from src/koans/maps.clj rename to src/koans/05-maps.clj diff --git a/src/koans/functions.clj b/src/koans/06-functions.clj similarity index 100% rename from src/koans/functions.clj rename to src/koans/06-functions.clj diff --git a/src/koans/conditionals.clj b/src/koans/07-conditionals.clj similarity index 100% rename from src/koans/conditionals.clj rename to src/koans/07-conditionals.clj diff --git a/src/koans/higher_order_functions.clj b/src/koans/08-higher_order_functions.clj similarity index 100% rename from src/koans/higher_order_functions.clj rename to src/koans/08-higher_order_functions.clj diff --git a/src/koans/runtime_polymorphism.clj b/src/koans/09-runtime_polymorphism.clj similarity index 100% rename from src/koans/runtime_polymorphism.clj rename to src/koans/09-runtime_polymorphism.clj diff --git a/src/koans/lazy_sequences.clj b/src/koans/10-lazy_sequences.clj similarity index 100% rename from src/koans/lazy_sequences.clj rename to src/koans/10-lazy_sequences.clj diff --git a/src/koans/sequence_comprehensions.clj b/src/koans/11-sequence_comprehensions.clj similarity index 100% rename from src/koans/sequence_comprehensions.clj rename to src/koans/11-sequence_comprehensions.clj diff --git a/src/koans/creating_functions.clj b/src/koans/12-creating_functions.clj similarity index 100% rename from src/koans/creating_functions.clj rename to src/koans/12-creating_functions.clj diff --git a/src/koans/recursion.clj b/src/koans/13-recursion.clj similarity index 100% rename from src/koans/recursion.clj rename to src/koans/13-recursion.clj diff --git a/src/koans/destructuring.clj b/src/koans/14-destructuring.clj similarity index 100% rename from src/koans/destructuring.clj rename to src/koans/14-destructuring.clj diff --git a/src/koans/refs.clj b/src/koans/15-refs.clj similarity index 100% rename from src/koans/refs.clj rename to src/koans/15-refs.clj diff --git a/src/koans/atoms.clj b/src/koans/16-atoms.clj similarity index 100% rename from src/koans/atoms.clj rename to src/koans/16-atoms.clj diff --git a/src/koans/macros.clj b/src/koans/17-macros.clj similarity index 100% rename from src/koans/macros.clj rename to src/koans/17-macros.clj diff --git a/src/koans/datatypes.clj b/src/koans/18-datatypes.clj similarity index 100% rename from src/koans/datatypes.clj rename to src/koans/18-datatypes.clj diff --git a/src/koans/java_interop.clj b/src/koans/19-java_interop.clj similarity index 100% rename from src/koans/java_interop.clj rename to src/koans/19-java_interop.clj