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

x/rimbu/sorted/map-custom/index.ts>SortedMapEmpty

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

Constructors

new
SortedMapEmpty(context: SortedMapContext<K>)

Type Parameters

optional
K = any
optional
V = any

Methods

addEntries(entries: StreamSource<readonly [K, V]>): SortedMap.NonEmpty<K, V>
addEntry(entry: readonly [K, V]): SortedMap.NonEmpty<K, V>
get<_, O>(key: any, otherwise?: OptLazy<O>): O
getKeyAtIndex<O>(index: number, otherwise?: OptLazy<O>): O
getValueAtIndex<O>(index: number, otherwise?: OptLazy<O>): O
hasKey(): false
mapValues<V2>(): SortedMap<K, V2>
maxKey<O>(otherwise?: OptLazy<O>): O
maxValue<O>(otherwise?: OptLazy<O>): O
minKey<O>(otherwise?: OptLazy<O>): O
minValue<O>(otherwise?: OptLazy<O>): O
modifyAt(atKey: K, options: { ifNew?: OptLazyOr<V, Token>; }): SortedMap<K, V>
removeKeyAndGet(): undefined
set(key: K, value: V): SortedMap.NonEmpty<K, V>
streamRange(): Stream<readonly [K, V]>
streamSliceIndex(): Stream<readonly [K, V]>
toJSON(): ToJSON<any[]>
toString(): string