diff --git a/.gitignore b/.gitignore index 06323cc..cbbcfd7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*~ bin classes lib @@ -8,4 +9,3 @@ target .lein-deps-sum .lein-plugins .lein-repl-history - diff --git a/src/koans/14_destructuring.clj b/src/koans/14_destructuring.clj index 42e0940..de6a9ce 100644 --- a/src/koans/14_destructuring.clj +++ b/src/koans/14_destructuring.clj @@ -12,16 +12,16 @@ [:foo :bar])) "Whether in function definitions" - (= (str "First comes love, " - "then comes marriage, " - "then comes Clojure with the baby carriage") + (= (str "An Oxford comma list of apples, " + "oranges, " + "and pears.") ((fn [[a b c]] __) - ["love" "marriage" "Clojure"])) + ["apples" "oranges" "pears"])) "Or in let expressions" - (= "Rich Hickey aka The Clojurer aka Go Time aka Macro Killah" + (= "Rich Hickey aka The Clojurer aka Go Time aka Lambda Guru" (let [[first-name last-name & aliases] - (list "Rich" "Hickey" "The Clojurer" "Go Time" "Macro Killah")] + (list "Rich" "Hickey" "The Clojurer" "Go Time" "Lambda Guru")] __)) "You can regain the full argument if you like arguing"