-
-
Save cemerick/17125de93ab466043505 to your computer and use it in GitHub Desktop.
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=> (. (clojure.lang.Box. 5) :val) | |
5 | |
user=> (defrecord Foo [seq]) | |
user.Foo | |
user=> (def r (Foo. 5)) | |
#'user/r | |
user=> (:seq r) | |
5 | |
user=> (.seq r) | |
([:seq 5]) | |
user=> (. r seq) | |
([:seq 5]) | |
user=> (. r :seq) | |
([:seq 5]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a) (. r :seq) is not a documented feature
b) it only works with known type,not via reflection as in this call