From 356844ba0a8ed9e1ece5879de82d2f27644bd981 Mon Sep 17 00:00:00 2001 From: Tom Marble Date: Wed, 24 Jun 2015 14:11:00 -0500 Subject: [PATCH] Replaced Playground song with Oxford comma --- .gitignore | 2 +- src/koans/14_destructuring.clj | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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"