Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/bimap/custom/index.ts>BiMapEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class BiMapEmpty
implements BiMap<K, V>
extends EmptyBase
Re-export
import { BiMapEmpty } from "https://deno.land/x/rimbu@0.13.5/bimap/custom/index.ts";

Constructors

new
BiMapEmpty(context: BiMapContext<K, V>)

Type Parameters

optional
K = any
optional
V = any

Properties

readonly
keyValueMap: RMap<K, V>
readonly
size: 0
readonly
valueKeyMap: RMap<V, K>

Methods

addEntries(entries: StreamSource<readonly [K, V]>): BiMap.NonEmpty<K, V>
addEntry(entry: readonly [K, V]): BiMap.NonEmpty<K, V>
getKey<_, O>(value: V, otherwise?: OptLazy<O>): O
getValue<_, O>(key: K, otherwise?: OptLazy<O>): O
hasKey(): false
hasValue(): false
removeKey(): this
removeKeyAndGet(): undefined
removeKeys(): this
removeValue(): this
removeValueAndGet(): undefined
removeValues(): this
set(key: K, value: V): BiMap.NonEmpty<K, V>
toBuilder(): BiMap.Builder<K, V>
toJSON(): ToJSON<(readonly [K, V])[], this["context"]["typeTag"]>
toString(): string