Skip to main content
Module

x/rimbu/sorted/common/index.ts>InnerChild

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface InnerChild
import { type InnerChild } from "https://deno.land/x/rimbu@0.14.0/sorted/common/index.ts";

Properties

readonly
size: number
readonly
entries: readonly E[]

Methods

getAtIndex<O>(index: number, otherwise?: OptLazy<O>): E | O
stream(reversed: boolean): Stream<E>
streamSliceIndex(range: IndexRange, reversed: boolean): Stream<E>
takeInternal(amount: number): InnerChild<E>
dropInternal(amount: number): InnerChild<E>
deleteMin(): [E, InnerChild<E>]
deleteMax(): [E, InnerChild<E>]
mutateGiveToLeft(left: InnerChild<E>, toLeft: E): [E, InnerChild<E>]
mutateGiveToRight(right: InnerChild<E>, toRight: E): [E, InnerChild<E>]
mutateSplitRight(index?: number): [E, InnerChild<E>]
mutateJoinLeft(left: InnerChild<E>, entry: E): void
mutateJoinRight(right: InnerChild<E>, entry: E): void
mutateGetFromLeft(left: InnerChild<E>, toMe: E): [E, InnerChild<E>]
mutateGetFromRight(right: InnerChild<E>, toMe: E): [E, InnerChild<E>]