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

x/rimbu/multimap/custom/implementation/base.ts>MultiMapEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class MultiMapEmpty
implements MultiMapBase<K, V, Tp>
extends EmptyBase
import { MultiMapEmpty } from "https://deno.land/x/rimbu@0.13.1/multimap/custom/implementation/base.ts";

Constructors

new
MultiMapEmpty(context: WithKeyValue<Tp, K, V>["context"])

Properties

readonly
keyMap: WithKeyValue<Tp, K, V>["keyMap"]
readonly
keySize: 0

Methods

add(key: K, value: V): WithKeyValue<Tp, K, V>["nonEmpty"]
addEntries(entries: StreamSource<readonly [K, V]>): any
getValues(): WithKeyValue<Tp, K, V>["keyMapValues"]
hasEntry(): false
hasKey(): false
modifyAt(atKey: K, options: { ifNew?: OptLazy<StreamSource<V>>; }): WithKeyValue<Tp, K, V>["normal"]
removeEntries(): WithKeyValue<Tp, K, V>["normal"]
removeEntry(): WithKeyValue<Tp, K, V>["normal"]
removeKey(): WithKeyValue<Tp, K, V>["normal"]
removeKeyAndGet(): undefined
removeKeys(): WithKeyValue<Tp, K, V>["normal"]
setValues(key: K, values: StreamSource<V>): WithKeyValue<Tp, K, V>["nonEmpty"]
toBuilder(): WithKeyValue<Tp, K, V>["builder"]
toJSON(): ToJSON<[K, V[]][]>
toString(): string