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

x/rimbu/list/custom/index.ts>BlockBuilder

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface BlockBuilder
implements BuilderBase<T, C>
Re-export
import { type BlockBuilder } from "https://deno.land/x/rimbu@0.14.0/list/custom/index.ts";

Type Parameters

T
optional
C = unknown

Properties

level: number
nrChildren: number
children: C[]

Methods

updateAt<O>(
index: number,
update: Update<T>,
otherwise?: OptLazy<O>,
): T | O
remove(index: number): T
dropFirst(): C
dropLast(): C
copy(children: C[], length: number): BlockBuilder<T, C>
splitRight(index?: number): BlockBuilder<T, C>
concat(other: BlockBuilder<T, C>, prependOther?: boolean): void
forEach(f: (
value: T,
index: number,
halt: () => void,
) => void
, state?: TraverseState
): void