Reverse order of quoting & macros koans
The macros lesson depends on the quoting one.
This commit is contained in:
		@@ -198,15 +198,13 @@
 | 
			
		||||
                 atomic-clock 20 :fin
 | 
			
		||||
                 ]}]
 | 
			
		||||
 | 
			
		||||
 ["18_macros" {"__" [~(first form)
 | 
			
		||||
                  ~(nth form 2)
 | 
			
		||||
                  form
 | 
			
		||||
                  (drop 2 form)
 | 
			
		||||
                  "Hello, Macros!"
 | 
			
		||||
                  10
 | 
			
		||||
                  '(+ 9 1)
 | 
			
		||||
                  '(* 10 2)
 | 
			
		||||
                  '(+ 10 (2 * 3))]}]
 | 
			
		||||
 ["18_quote" {"__" ['(1 2 3 4 5)
 | 
			
		||||
                    (1 2 3 4 5)
 | 
			
		||||
                    'age
 | 
			
		||||
                    quote
 | 
			
		||||
                    '(+ 2 3)
 | 
			
		||||
                    1 2 3
 | 
			
		||||
                    1 5]}]
 | 
			
		||||
 | 
			
		||||
 ["19_datatypes" {"__" [(print
 | 
			
		||||
                      (str "You're really the "
 | 
			
		||||
@@ -226,8 +224,8 @@
 | 
			
		||||
                        1024
 | 
			
		||||
                        ]
 | 
			
		||||
                  "___" [#(.toUpperCase %)
 | 
			
		||||
                         ]
 | 
			
		||||
                  }]
 | 
			
		||||
                         ]}]
 | 
			
		||||
 | 
			
		||||
 ["21_partition" {"__" [partition
 | 
			
		||||
                        [:a :b :c]
 | 
			
		||||
                        '((0 1 2) (3 4))
 | 
			
		||||
@@ -235,6 +233,7 @@
 | 
			
		||||
                        :hello
 | 
			
		||||
                        (6 :these :are)
 | 
			
		||||
                        ]}]
 | 
			
		||||
 | 
			
		||||
 ["22_group_by" {"__" [odd?
 | 
			
		||||
                       {5 ["hello" "world"] 3 ["foo" "bar"]}
 | 
			
		||||
                       {1 [{:name "Bob" :id 1}
 | 
			
		||||
@@ -244,6 +243,7 @@
 | 
			
		||||
                       {:naughty-list [{:name "Jimmy" :bad true}
 | 
			
		||||
                                       {:name "Joe" :bad true}]
 | 
			
		||||
                        :nice-list [{:name "Jane" :bad false}]}]}]
 | 
			
		||||
 | 
			
		||||
 ["23_meta" {"__" [{:league "National League"}
 | 
			
		||||
                   {:division "West"}
 | 
			
		||||
                   "This doesn't implement the IObj interface"
 | 
			
		||||
@@ -254,11 +254,15 @@
 | 
			
		||||
                   :park "AT&T Park"
 | 
			
		||||
                   'Giants
 | 
			
		||||
                   "Giants"]}]
 | 
			
		||||
 ["24_quote" {"__" ['(1 2 3 4 5)
 | 
			
		||||
                    (1 2 3 4 5)
 | 
			
		||||
                    'age
 | 
			
		||||
                    quote
 | 
			
		||||
                    '(+ 2 3)
 | 
			
		||||
                    1 2 3
 | 
			
		||||
                    1 5]}]
 | 
			
		||||
 | 
			
		||||
 ["24_macros" {"__" [~(first form)
 | 
			
		||||
                  ~(nth form 2)
 | 
			
		||||
                  form
 | 
			
		||||
                  (drop 2 form)
 | 
			
		||||
                  "Hello, Macros!"
 | 
			
		||||
                  10
 | 
			
		||||
                  '(+ 9 1)
 | 
			
		||||
                  '(* 10 2)
 | 
			
		||||
                  '(+ 10 (2 * 3))]}]
 | 
			
		||||
 | 
			
		||||
]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user