Skip to main content
Module

x/rimbu/table/custom/index.ts>TableBase.NonEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface TableBase.NonEmpty
implements [VariantTableBase.NonEmpty]<R, C, V, Tp>, Omit<TableBase<R, C, V, Tp>, keyof VariantTableBase.NonEmpty<any, any, any>>, [Streamable.NonEmpty]<[R, C, V]>
import { type TableBase } from "https://deno.land/x/rimbu@0.13.1/table/custom/index.ts";
const { NonEmpty } = TableBase;

Methods

stream(): Stream.NonEmpty<[R, C, V]>

Returns a non-empty Stream containing all entries of this collection as tuples of row key, column key, and value.

addEntries(entries: StreamSource<readonly [R, C, V]>): WithRow<Tp, R, C, V>["nonEmpty"]

Returns the collection with the given entries added.

updateAt<UR = R, UC = C>(
row: RelatedTo<R, UR>,
column: RelatedTo<C, UC>,
update: Update<V>,
): WithRow<Tp, R, C, V>["nonEmpty"]

Returns the collection with the value at given row and column keys updated according to the given update function.