import { type BiMultiMapBase } from "https://deno.land/x/rimbu@1.0.3/bimultimap/custom/index.ts";
const { Builder } = BiMultiMapBase;
Methods
setValues(key: K, values: StreamSource<V>): boolean
Sets the values associated to given key
to the values in the given values
StreamSource.
setKeys(value: V, keys: StreamSource<K>): boolean
Sets the keys associated to given value
to the keys in the given keys
StreamSource.
removeKeys<UK = K>(keys: StreamSource<RelatedTo<K, UK>>): boolean
Removes the entries related to the given keys
StreamSource
from the builder.
removeValues<UV = V>(values: StreamSource<RelatedTo<V, UV>>): boolean
Removes the entries related to the given values
StreamSource
from the builder.
forEach(f: () => void, state?: TraverseState): void
Performs given function f
for each entry of the builder.
build(): WithKeyValue<Tp, K, V>["normal"]
Returns an immutable collection instance containing the entries in this builder.