Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created February 15, 2014 11:07
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 borkdude/10ec65989ef4d371bbcd to your computer and use it in GitHub Desktop.
Save borkdude/10ec65989ef4d371bbcd to your computer and use it in GitHub Desktop.
user=> (def ^:dynamic x-factor nil)
user=> (defn times [x]
#_=> (* x (if x-factor x-factor 1)))
user=> (def res (binding [x-factor 2] (map times (range 100))))
user=> (take 10 res)
(0 1 2 3 4 5 6 7 8 9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment