Skip to content

Instantly share code, notes, and snippets.

@cddr
Created August 4, 2015 17:43
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 cddr/e8a800cd8d416f5d71d7 to your computer and use it in GitHub Desktop.
Save cddr/e8a800cd8d416f5d71d7 to your computer and use it in GitHub Desktop.
(def ^:dynamic *foo*)
(defn call-with-foo [foo-fn]
(binding [*foo* 42]
(foo-fn)))
(call-with-foo (fn []
(map (fn [_]
*foo*)
(range 10))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment