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 is a website building & hosting documentation for Clojure/Script libraries
× close