Skip to content

Instantly share code, notes, and snippets.

@jafingerhut
Created November 4, 2014 23:09
Show Gist options
  • Save jafingerhut/9323268424eca54293f5 to your computer and use it in GitHub Desktop.
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