Created
July 24, 2011 16:15
-
-
Save seban/1102777 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; What is the proper answer for this koan? | |
(defn multiply-by-ten [n] | |
(* 10 n)) | |
(defn square [n] (* n n)) | |
(meditations | |
"Higher-order functions take function arguments" | |
(= 25 (___ | |
(fn [n] (* n n)))) | |
"But they are often better written using the names of functions" | |
(= 25 (___ square))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment