Created
April 9, 2011 13:04
-
-
Save ejackson/911384 to your computer and use it in GitHub Desktop.
binding over map function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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