diff --git a/src/koans/functions.clj b/src/koans/functions.clj index fcc51d9..39ef8cb 100644 --- a/src/koans/functions.clj +++ b/src/koans/functions.clj @@ -13,6 +13,9 @@ "Or using even shorter syntax" (= __ (#(* 15 %) __)) + "Short anonymous functions may take multiple arguments" + (= __ (#(+ %1 %2 %3) 4 5 6)) + "One function can beget another" (= __ ((fn [] ((fn [a b] (__ a b)) diff --git a/src/path_to_answer_sheet.clj b/src/path_to_answer_sheet.clj index 6a0ae59..f410ecd 100644 --- a/src/path_to_answer_sheet.clj +++ b/src/path_to_answer_sheet.clj @@ -54,6 +54,7 @@ "functions" {"__" [20 10 5 30 2 + 15 20 "*"] "___" ['(fn [f] (f 5)) '(fn [f] 25)]}