import { type MultiMapBase } from "https://deno.land/x/rimbu@1.0.2/multimap/custom/interface/base.ts";
const { Builder } = MultiMapBase;
Methods
setValues(key: K, values: StreamSource<V>): boolean
Assigns given values
StreamSource
to the given key
, replacing potential existing
values, and removing the key if values
is empty.
removeKeys<UK = K>(keys: StreamSource<RelatedTo<K, UK>>): boolean
Removes the values associated with each key of the given keys
forEach(f: () => void, state?: TraverseState): void
Performs given function f
for each entry of the builder, using given state
as initial traversal state.
build(): WithKeyValue<Tp, K, V>["normal"]
Returns an immutable collection instance containing the entries in this builder.