Rename koan files to start with a number, to give the learner a feeling of progress.

This commit is contained in:
Noam Yorav-Raphael 2012-06-07 00:24:21 +03:00 committed by Colin Jones
parent a3b7313c1b
commit d7c093d2c8
20 changed files with 19 additions and 19 deletions

View File

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