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

x/rimbu/list/custom/builder/block-builder.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>
import { type BlockBuilder } from "https://deno.land/x/rimbu@1.0.0/list/custom/builder/block-builder.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