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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user