Reverse order of quoting & macros koans

The macros lesson depends on the quoting one.
master
Colin Jones 8 years ago
parent 6c00a3e358
commit 007cbae060
No known key found for this signature in database
GPG Key ID: 558A6B658C368953

@ -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))]}]
]

@ -1,4 +1,4 @@
(ns koans.24-quote
(ns koans.18-quote
(:require [koan-engine.core :refer :all]))

@ -1,4 +1,4 @@
(ns koans.18-macros
(ns koans.24-macros
(:require [koan-engine.core :refer :all]))
(defmacro hello [x]
Loading…
Cancel
Save