clojure.core/hash-map¶
keyval => key val Returns a new hash map with supplied mappings. If any keys are equal, they are handled as if by repeated uses of assoc.
Examples¶
Note by er2¶
If you want to create a map from a sequence of pairs, e.g. [[k1 v1] [k2 v2]], see into.
See also¶
- clojure.core/merge (8)
- clojure.core/assoc (8)
- clojure.core/dissoc (3)
- clojure.core/array-map (3)
- clojure.core/sorted-map (5)
- clojure.core/into (9)
- clojure.core/zipmap (7)
- clojure.core/keys (2)
- clojure.core/vals (1)
Content from the matching ClojureDocs page, with authors credited on each contribution.