import { SortedMapLeaf } from "https://deno.land/x/rimbu@1.0.3/sorted/map-custom/implementation/immutable.ts";
Constructors
new
SortedMapLeaf(context: SortedMapContext<K>, entries: readonly (readonly [K, V])[])Methods
addInternal(entry: readonly [K, V]): SortedMapNode<K, V>
dropInternal(amount: number): SortedMapLeaf<K, V>
forEach(f: () => void, state?: TraverseState): void
getAtIndex<O>(index: number, otherwise?: OptLazy<O>): readonly [K, V] | O
getInsertIndexOf(key: K): number
mapValues<V2>(mapFun: (value: V, key: K) => V2): SortedMapLeaf<K, V2>
mutateGetFromLeft(left: SortedMapLeaf<K, V>, toMe: readonly [K, V]): [readonly [K, V], SortedMapLeaf<K, V>]
mutateGetFromRight(right: SortedMapLeaf<K, V>, toMe: readonly [K, V]): [readonly [K, V], SortedMapLeaf<K, V>]
mutateGiveToLeft(left: SortedMapLeaf<K, V>, toLeft: readonly [K, V]): [readonly [K, V], SortedMapLeaf<K, V>]
mutateGiveToRight(right: SortedMapLeaf<K, V>, toRight: readonly [K, V]): [readonly [K, V], SortedMapLeaf<K, V>]
mutateJoinLeft(left: SortedMapLeaf<K, V>, entry: readonly [K, V]): void
mutateJoinRight(right: SortedMapLeaf<K, V>, entry: readonly [K, V]): void
mutateSplitRight(index?: number): [readonly [K, V], SortedMapLeaf<K, V>]
streamSliceIndex(range: IndexRange, reversed?: boolean): Stream<readonly [K, V]>
takeInternal(amount: number): SortedMapLeaf<K, V>
toArray(): ArrayNonEmpty<[K, V]>