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

x/rimbu/list/custom/implementation/empty.ts>Empty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class Empty
implements List<T>
extends EmptyBase
import { Empty } from "https://deno.land/x/rimbu@1.0.2/list/custom/implementation/empty.ts";

Constructors

new
Empty(context: ListContext)

Type Parameters

optional
T = any

Methods

append(value: T): List.NonEmpty<T>
collect(): any
concat<T2>(...sources: ArrayNonEmpty<StreamSource<T2>>): any
drop(): this
filter(): this
first<O>(otherwise?: OptLazy<O>): O
flatMap(): any
get<O>(index: number, otherwise?: OptLazy<O>): O
insert(index: number, values: StreamSource<T>): any
last<O>(otherwise?: OptLazy<O>): O
map(): any
mapPure(): any
padTo(length: number, fill: any): List<any>
prepend(value: T): List.NonEmpty<T>
remove(): this
repeat(): this
reversed(): this
rotate(): this
slice(): this
sort(): this
splice(options: { insert?: StreamSource<T>; }): any
structure(): string
take(): this
toArray(): []
toBuilder(): List.Builder<T>
toJSON(): ToJSON<any[], this["context"]["typeTag"]>
toString(): string
updateAt(): this