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

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

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

Properties

abstract
readonly
context: SortedSetContext<T>
abstract
readonly
size: number

Methods

add(value: T): SortedSet.NonEmpty<T>
addAll(values: StreamSource<T>): SortedSet.NonEmpty<T>
abstract
addInternal(value: T): SortedSetNode<T>
asNormal(): this
drop(amount: number): SortedSet<T>
filter(pred: (
value: T,
index: number,
halt: () => void,
) => boolean
): SortedSet<T>
abstract
forEach(f: (
value: T,
index: number,
halt: () => void,
) => void
, traverseState?: TraverseState
): void
abstract
getInsertIndexOf(value: T): number
getSliceRange(range: Range<T>): { startIndex: number; endIndex: number; }
abstract
has<U>(value: RelatedTo<T, U>): boolean
abstract
max(): T
abstract
min(): T
abstract
normalize(): SortedSet<T>
remove<U>(value: RelatedTo<T, U>): SortedSet<T>
abstract
removeInternal(value: T): SortedSetNode<T>
slice(range: Range<T>): SortedSet<T>
abstract
stream(reversed?: boolean): Stream.NonEmpty<T>
streamRange(range: Range<T>, reversed?): Stream<T>
abstract
streamSliceIndex(range: IndexRange, reversed?: boolean): Stream<T>
take(amount: number): SortedSet<T> | any
abstract
toArray(): ArrayNonEmpty<T>
toBuilder(): SortedSet.Builder<T>
toString(): string
union(other: StreamSource<T>): SortedSet<T> | any