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

x/rimbu/list/custom/builder/builder-base.ts>BuilderBase

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface BuilderBase
import { type BuilderBase } from "https://deno.land/x/rimbu@0.14.0/list/custom/builder/builder-base.ts";

Type Parameters

T
optional
C = unknown

Properties

readonly
length: number

Methods

get<O>(index: number, otherwise?: OptLazy<O>): T | O
prepend(value: C): void
append(value: C): void
insert(index: number, value: T): void
remove(index: number): T
build(): List<T> | NonLeaf<T>
buildMap<T2>(f: (value: T) => T2): List<T2> | NonLeaf<T2>