found this on a blog: (def x ^{:type ::my-class} {})
obviously it adds metadata to the map
user=> (meta x)
{:type :user/my-class}
what else is doing ^? Does he have any other uses? can it be used as a getter for metadata (and not just for setting metadata)?
How can I find out information about some shortcuts in clojure? e.g. ^, ', `, ~. is it possible to get this from repl?
source
share