3 ms·
Clojure s-expressions actually have syntax for vectors, maps, and sets (in addition to the ones mentioned in TFA): {:k1 v1, :k2 v2} ; curly braces for ma
by groovy2shoes 14y ago
Clojure s-expressions actually have syntax for vectors, maps, and sets (in addition to the ones mentioned in TFA):
{:k1 v1, :k2 v2} ; curly braces for maps
[v1 v2 v3] ; square brackets for vectors
#{v1 v2 v3} ; pound-curly for sets
Clojure's reader also provides some mechanisms for adding readable values, which is awesome for serialization and interchange. There's more info here: http://clojure.org/reader http://clojure.org/reader
- rdtsc 14y agoYou are right. My bad, I should just looked it up. Thought I could wing it from memory.