Skip to content

Instantly share code, notes, and snippets.

@seban
Created July 24, 2011 16:15
Show Gist options
  • Save seban/1102777 to your computer and use it in GitHub Desktop.
Save seban/1102777 to your computer and use it in GitHub Desktop.
; 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