A multimap is a map that permits multiple values for each key. In Clojure we can represent a multimap as a map with sets as values.
A multimap is a map that permits multiple values for each key. In Clojure we can represent a multimap as a map with sets as values.
(add mm k v)
(add mm k v & kvs)
Adds key-value pairs the multimap.
Adds key-value pairs the multimap.
(del mm k v)
(del mm k v & kvs)
Removes key-value pairs from the multimap.
Removes key-value pairs from the multimap.
(mm-merge & mms)
Merges the multimaps, taking the union of values.
Merges the multimaps, taking the union of values.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |