keen/col/multi-map
Sourcemulti-map[k, v] record (has private fields)try-remove-pair[k, v] (k, v) multi-map option(a (k, v) multi-map, key k, value v) k key, v keyIf the (key, value) pair exists in the map, this is the map without it. Else this is an empty option.
remove-pair[k, v] (k, v) multi-map(a (k, v) multi-map, key k, value v) k key, v keyLike
try-remove-pair, but if a does not contain the pair, this just returns a.try-remove-key[k, v] (k, v) multi-map option(a (k, v) multi-map, key k) k key, v keyIf the key exists in the map, this is the map without all associated values. Else this is an empty option.
remove-key[k, v] (k, v) multi-map(a (k, v) multi-map, key k) k key, v keyRemoves all values for the key (if any).
multi-map-by-key[k, v] record
map, keys are not unique. However, (key, value) pairs are unique. (Test usinga[key][value])