Add all entries from the other map, overwriting existing entries.
Add all entries from the other map, overwriting existing entries.
FIXME: should it merge, instead?
Obtain all mappings for the given key.
Return a map that has the given value added to the mappings for the given key.
Return a map that has all mappings for the given key removed.
Return the set of keys which are mapped to non-empty value sets.
Return a map that has the given mapping from the given key removed.
Return a map that has the given value removed from all keys.
An immutable multi-map that expresses the value type as a type function of the key type. Create it with a type constructor that expresses the relationship:
Caveat: using keys which take type parameters does not work due to conflicts with the existential interpretation of
Key[_]
. A workaround is to define a key type like above and provide a subtype that provides its type parameter as type memberType
.