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

x/rimbu/proximity/map-custom/implementation/Empty.ts>ProximityMapEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class ProximityMapEmpty
implements ProximityMap<K, V>
extends EmptyBase
import { ProximityMapEmpty } from "https://deno.land/x/rimbu@1.0.0/proximity/map-custom/implementation/Empty.ts";

Constructors

new
ProximityMapEmpty(context: ProximityMap.Context<K>)

Type Parameters

optional
K = any
optional
V = any

Methods

addEntries(entries: StreamSource<readonly [K, V]>): ProximityMap.NonEmpty<K, V>
addEntry(entry: readonly [K, V]): ProximityMap.NonEmpty<K, V>
get<O>(_key: K, otherwise?: OptLazy<O>): O
hasKey(): false
modifyAt(atKey: K, options: { ifNew?: OptLazyOr<V, Token>; }): ProximityMap<K, V>
removeKeyAndGet(): undefined
set(key: K, value: V): ProximityMap.NonEmpty<K, V>
toBuilder(): ProximityMap.Builder<K, V>
toJSON(): ToJSON<(readonly [K, V])[]>
toString(): string