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

x/rimbu/list/custom/implementation/leaf/leaf-block.ts>ReversedLeafBlock

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class ReversedLeafBlock
extends LeafBlock<T>
import { ReversedLeafBlock } from "https://deno.land/x/rimbu@0.14.0/list/custom/implementation/leaf/leaf-block.ts";

Methods

copy(children: readonly T[]): LeafBlock<T>
copy2<T2>(children: readonly T2[]): LeafBlock<T2>
dropChildren(childAmount: number): LeafBlock<T>
get<O>(index: number, otherwise?: OptLazy<O>): T | O
map<T2>(
mapFun: (value: T, index: number) => T2,
reversed?,
indexOffset?,
): LeafBlock<T2>
reversed(cacheMap?): LeafBlock<T>
stream(reversed?): Stream.NonEmpty<T>
streamRange(range: IndexRange, reversed?): Stream<T>
structure(): string
takeChildren(childAmount: number): LeafBlock<T>
toArray(range?: IndexRange, reversed?): T[] | any
updateAt(index: number, update: Update<T>): LeafBlock<T>