import { type BiMap } from "https://deno.land/x/rimbu@0.13.5/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.
Returns true if the given key
is present in the builder.
Returns true if the given value
is present in the builder.
Adds the given entry
to the builder, where the entry key is associated with the entry value.
Adds given entries
to the builder.
Removes the entries related to given key
from the builder.
Removes the entries related to the given keys
StreamSource
from the builder.
Removes the entries related to given value
from the builder.
Removes the entries related to the given values
StreamSource
from the builder.
Performs given function f
for each entry of the builder.