Except when they are small enough to conveniently be array-maps: user=> (class (into {} (zipmap (range) (range 8)))) clojure.lang.PersistentArrayMap user=> (class (into {} (zipmap (range) (range 9)))) clojure.lang.PersistentHashMap
But those behave just like hash-maps, so you can ignore the difference. On Nov 1, 11:31 pm, Rasmus Svensson <r...@lysator.liu.se> wrote: > 2010/11/1 tonyl <celtich...@gmail.com>: > > > I was wondering since it uses the dispatch macro and AFAIK > > there is no api fn to create them like hash-maps to create maps, > > vector/vec for vectors, or list for lists. > > There are parallels to 'hash-map' and 'sorted-map' in the api: > > user=> (hash-set :a :b :c) > #{:a :c :b} > user=> (sorted-set :a :b :c) > #{:a :b :c} > > Literal maps are hash-maps. > > //raek -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en