Created
November 4, 2014 23:09
-
-
Save jafingerhut/9323268424eca54293f5 to your computer and use it in GitHub Desktop.
Reify with namespace-qualified args
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
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