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

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

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class SortedMapContext
implements [SortedMap.Context]<UK>
Re-export
import { SortedMapContext } from "https://deno.land/x/rimbu@1.0.0/sorted/map-custom/index.ts";

Constructors

new
SortedMapContext(blockSizeBits: number, comp: Comp<UK>)

Properties

readonly
_empty: SortedMap<any, any>
readonly
builder: <K extends UK, V>() => SortedMapBuilder<K, V>
readonly
maxEntries: number
readonly
minEntries: number
readonly
typeTag: string

Methods

createBuilder<K extends UK, V>(source?: SortedMap<K, V>): SortedMapBuilder<K, V>
findIndex(key: UK, entries: readonly (readonly [UK, unknown])[]): number
inner<V>(
entries: readonly (readonly [UK, V])[],
children: readonly SortedMapNode<UK, V>[],
size: number,
): SortedMapInner<UK, V>
isNonEmptyInstance(source: any): source is any
isSortedMapInner<K, V>(obj: any): obj is SortedMapInner<K, V>
isSortedMapLeaf<K, V>(obj: any): obj is SortedMapLeaf<K, V>
isValidKey(key: any): key is UK
leaf<V>(entries: readonly (readonly [UK, V])[]): SortedMapLeaf<UK, V>