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

x/rimbu/sorted/set-custom/index.ts>SortedSetLeaf

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class SortedSetLeaf
extends SortedSetNode<T>
Re-export
import { SortedSetLeaf } from "https://deno.land/x/rimbu@1.0.0/sorted/set-custom/index.ts";

Constructors

new
SortedSetLeaf(context: SortedSetContext<T>, entries: readonly T[])

Properties

readonly
size: number

Methods

copy(entries: readonly T[]): SortedSetLeaf<T>
dropInternal(amount: number): SortedSetLeaf<T>
forEach(f: (
value: T,
index: number,
halt: () => void,
) => void
, state?: TraverseState
): void
getAtIndex<O>(index: number, otherwise?: OptLazy<O>): T | O
getInsertIndexOf(value: T): number
has<U>(value: RelatedTo<T, U>): boolean
max(): T
min(): T
mutateJoinLeft(left: SortedSetLeaf<T>, entry: T): void
mutateJoinRight(right: SortedSetLeaf<T>, entry: T): void
mutateSplitRight(index?: number): [T, SortedSetLeaf<T>]
stream(reversed?): Stream.NonEmpty<T>
streamSliceIndex(range: IndexRange, reversed?): Stream<T>
takeInternal(amount: number): SortedSetLeaf<T>