Skip to content

Instantly share code, notes, and snippets.

@jafingerhut
Created November 4, 2014 23:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jafingerhut/9323268424eca54293f5 to your computer and use it in GitHub Desktop.
Reify with namespace-qualified args
user=> (def b 7)
#'user/b
user=> (def fplus2 (reify java.lang.Object (hashCode [user/b] (+ user/b 2))))
#'user/fplus2
user=> (.hashCode fplus2)
9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment