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

x/rimbu/list/custom/index.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>
Re-export
import { ReversedLeafBlock } from "https://deno.land/x/rimbu@0.13.0/list/custom/index.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>