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

x/rimbu/ordered/map-custom/implementation/empty.ts>OrderedMapEmpty

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

Constructors

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

Type Parameters

optional
K = any
optional
V = any
optional
Tp extends OrderedMapTypes = OrderedMapTypes

Properties

readonly
keyOrder: List<K>
readonly
sourceMap: WithKeyValue<Tp, K, V>["sourceMap"]

Methods

addEntries(entries: StreamSource<readonly [K, V]>): WithKeyValue<Tp, K, V>["normal"] | any
addEntry(entry: readonly [K, V]): WithKeyValue<Tp, K, V>["nonEmpty"]
get<O>(key: K, otherwise?: OptLazy<O>): O
hasKey(): false
mapValues(): any
modifyAt(key: K, options: { ifNew?: OptLazyOr<V, Token>; }): WithKeyValue<Tp, K, V>["normal"]
removeKey(): WithKeyValue<Tp, K, V>["normal"]
removeKeyAndGet(): undefined
removeKeys(): WithKeyValue<Tp, K, V>["normal"]
set(key: K, value: V): WithKeyValue<Tp, K, V>["nonEmpty"]
toBuilder(): WithKeyValue<Tp, K, V>["builder"]
toJSON(): ToJSON<any[]>
toString(): string
updateAt(): any