Rename to use underscores instead of dashes

Works fine either way - this is just since underscores are required
in filenames for real projects, so it's something good for folks to
get used to.
This commit is contained in:
Colin Jones 2012-06-08 15:01:39 -05:00
parent d7c093d2c8
commit 78c5704f34
20 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
[["01-equalities" {"__" [true [["01_equalities" {"__" [true
2 2
7 7
5 5
@ -7,7 +7,7 @@
6/3 6/3
3]}] 3]}]
["02-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!"
()]}] ()]}]
["03-vectors" {"__" [1 ["03_vectors" {"__" [1
[] []
[1] [1]
[nil] [nil]
@ -30,14 +30,14 @@
[:butter :and] [:butter :and]
3]}] 3]}]
["04-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}]}]
["05-maps" {"__" [{} ["05_maps" {"__" [{}
0 0
1 1
2 2
@ -53,8 +53,8 @@
1 "January" 1 "January"
2006 2010 2014 2006 2010 2014
"Vancouver"]}] "Vancouver"]}]
["06-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))]}]
["07-conditionals" {"__" [:a ["07_conditionals" {"__" [:a
[] []
nil nil
:glory :glory
@ -71,7 +71,7 @@
:cocked-pistol :cocked-pistol
:say-what?]}] :say-what?]}]
["08-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)]}]
["09-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!" ]}]
["10-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)]}]
["11-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]
]}] ]}]
["12-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)]}]
["13-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]}]
["14-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))
]}] ]}]
["15-refs" {"__" ["hello" ["15_refs" {"__" ["hello"
"hello" "hello"
"better" "better"
"better!!!" "better!!!"
@ -159,7 +159,7 @@
] ]
"___" [(fn [x] (+ 20 x))]}] "___" [(fn [x] (+ 20 x))]}]
["16-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
]}] ]}]
["17-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))]}]
["18-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!")]}]
["19-java_interop" {"__" [java.lang.String ["19_java_interop" {"__" [java.lang.String
"SELECT * FROM" "SELECT * FROM"
10 10
1024 1024