Skip to content

Instantly share code, notes, and snippets.

@jasongilman
Created September 9, 2012 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongilman/3688007 to your computer and use it in GitHub Desktop.
Save jasongilman/3688007 to your computer and use it in GitHub Desktop.
high order function example
(defn multiplier [n]
(fn [x] (* x n)))
(def doubler (multiplier 2))
(doubler 7)
14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment