Skip to content

clojure.core/hash-map

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 6 Runnable: 3
([] [& keyvals])

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

by zmila on . May have evaluation errors.
by zmila on . May have evaluation errors.
by dipto_sarkar on . May have evaluation errors.
by octopusgrabbus on
by smnplk on
by rebcabin on

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


Content from the matching ClojureDocs page, with authors credited on each contribution.