Skip to content

Instantly share code, notes, and snippets.

@ejackson
Created April 9, 2011 13:08
Show Gist options
  • Save ejackson/911386 to your computer and use it in GitHub Desktop.
Save ejackson/911386 to your computer and use it in GitHub Desktop.
binding over map function
(declare *connection*)
(defn it-works []
(binding [*connection* "hello, world"]
(prn *connection*)))
(defn it-works-now []
(binding [*connection* "hello, world"]
(map
(bound-fn [_] (prn *connection*))
[1 2])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment