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

x/rimbu/sorted/set-custom/implementation/context.ts>SortedSetContext

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class SortedSetContext
implements [SortedSet.Context]<UT>
import { SortedSetContext } from "https://deno.land/x/rimbu@1.0.4/sorted/set-custom/implementation/context.ts";

Constructors

new
SortedSetContext(blockSizeBits: number, comp: Comp<UT>)

Properties

readonly
_empty: SortedSet<any>
readonly
builder: <T extends UT>() => SortedSetBuilder<T>
readonly
maxEntries: number
readonly
minEntries: number
readonly
typeTag: string

Methods

createBuilder<T extends UT>(source?: SortedSet<T>): SortedSetBuilder<T>
findIndex(value: UT, entries: readonly UT[]): number
inner(
entries: readonly UT[],
children: readonly SortedSetNode<UT>[],
size: number,
): SortedSetInner<UT>
isNonEmptyInstance(source: any): source is any
isSortedSetInner<T>(obj: any): obj is SortedSetInner<T>
isSortedSetLeaf<T>(obj: any): obj is SortedSetLeaf<T>
isSortedSetNode<T>(obj: any): obj is SortedSetNode<T>
isValidValue(value: any): value is UT
leaf(entries: readonly UT[]): SortedSetLeaf<UT>