Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/proximity/map-custom/index.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
Re-export
import { ProximityMapEmpty } from "https://deno.land/x/rimbu@1.2.1/proximity/map-custom/index.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