Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@1.2.1/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, options?: { reversed?: boolean; indexOffset?: number; }): LeafBlock<T2>
reversed(cacheMap?): LeafBlock<T>
stream(options?: { reversed?: boolean; }): Stream.NonEmpty<T>
streamRange(range: IndexRange, options?: { reversed?: boolean; }): Stream<T>
structure(): string
takeChildren(childAmount: number): LeafBlock<T>
toArray(options?: { range?: IndexRange | undefined; reversed?: boolean; }): T[] | any
updateAt(index: number, update: Update<T>): LeafBlock<T>