Skip to content

Instantly share code, notes, and snippets.

Created August 2, 2013 00:45
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 anonymous/6136672 to your computer and use it in GitHub Desktop.
Save anonymous/6136672 to your computer and use it in GitHub Desktop.
Output is ("hello") but I expect (5). What's going on?
(def ^:dynamic *F* :identity)
(binding [*F* :count] (map (fn [x] (condp = *F*
:identity (identity x)
:count (count x)))
["hello"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment