import { type BiMap } from "https://deno.land/x/rimbu@0.13.0/bimap/mod.ts";
const { Builder } = BiMap;
A mutable BiMap
builder used to efficiently create new immutable instances.
See the BiMap documentation and the BiMap.Builder API documentation
Methods
Returns the value associated with the given key
, or given otherwise
value if the key is not in the collection.
Returns the key associated with the given value
, or given otherwise
value if the value is not in the collection.
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.