Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2.1/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
, options?: { reversed?: boolean; state?: TraverseState; }
): void