import { type BiMap } from "https://deno.land/x/rimbu@1.2.0/bimap/mod.ts";
const { NonEmpty } = BiMap;
A non-empty type-invariant immutable bi-directional Map where keys and values have a one-to-one mapping. See the BiMap documentation and the BiMap API documentation * @typeparam K - the key type
Properties
Methods
addEntries(entries: StreamSource<readonly [K, V]>): BiMap.NonEmpty<K, V>
Returns the collection with the entries from the given StreamSource
entries
added.
Returns the collection where the value associated with given key
is updated with the given update
value or update function.
Returns the collection where the key associated with given value
is updated with the given update
value or update function.
streamValues(): Stream.NonEmpty<V>
Returns a non-empty Stream
containing all values of this collection.
toArray(): ArrayNonEmpty<readonly [K, V]>
Returns a non-empty array containing all entries in this collection.