Skip to main content
Module

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

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Latest
interface BuilderBase
Re-export
import { type BuilderBase } from "https://deno.land/x/rimbu@1.2.1/list/custom/index.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>