Skip to main content
Module

x/rimbu/hashed/map-custom/index.ts>HashMapEmpty

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

Constructors

new
HashMapEmpty(context: HashMapContext<K>)

Type Parameters

optional
K = any
optional
V = any

Methods

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