I have the following
user=> (class ({:one "1"} {:two "2"} {:three "3"}))
clojure.lang.PersistentArrayMap
but am a little confused as to how best to access the data
for example:
user=> (count ({:one "1"} {:two "2"} {:three "3"}))
1
user=> (first ({:one "1"} {:two "2"} {:three "3"}))
[:three "3"]
user=> (last ({:one "1"} {:two "2"} {:three "3"}))
[:three "3"]
what I really want is something like this:
user=> (conj {:one "1"} {:two "2"} {:three "3"})
{:three "3", :two "2", :one "1"}
Can someone possibly explain what I am misunderstanding about
ArrayMaps so I can fill in some of my knowledge gaps?
Thanks
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en