Skip to content

Instantly share code, notes, and snippets.

@ejackson
Created April 9, 2011 13:04
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 ejackson/911384 to your computer and use it in GitHub Desktop.
Save ejackson/911384 to your computer and use it in GitHub Desktop.
binding over map function
(defn it-works []
(binding [*connection* "hello, world"]
(prn *connection*)))
(defn it-works-not []
(binding [*connection* "hello, world"]
(map
(fn [_] (prn user/*connection*))
[1 2])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment