From 6fb62d5c7973101d905a060dff3498fb97983dcc Mon Sep 17 00:00:00 2001 From: Marshall Shen Date: Mon, 22 Jul 2013 10:55:09 -0500 Subject: [PATCH 1/2] add one more problem in function exercise --- src/koans/06_functions.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/koans/06_functions.clj b/src/koans/06_functions.clj index 1f6d4c3..6be6f16 100644 --- a/src/koans/06_functions.clj +++ b/src/koans/06_functions.clj @@ -19,6 +19,9 @@ "Even anonymous functions may take multiple arguments" (= __ (#(+ %1 %2 %3) 4 5 6)) + "Arguments can also be skipped" + (= __ (#(* 15 %2) 1 2)) + "One function can beget another" (= 9 (((fn [] ___)) 4 5)) From e7f18eb4e61098816b1e33eca0764708e97f5a53 Mon Sep 17 00:00:00 2001 From: Marshall Shen Date: Mon, 22 Jul 2013 12:10:37 -0500 Subject: [PATCH 2/2] add answer --- resources/koans.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/koans.clj b/resources/koans.clj index ae643a0..c1c6e93 100644 --- a/resources/koans.clj +++ b/resources/koans.clj @@ -61,7 +61,8 @@ 20 10 60 - 15] + 15 + 30] "___" [+ * (fn [f] (f 5))