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

x/rimbu/table/custom/index.ts>TableBuilder

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class TableBuilder
import { TableBuilder } from "https://deno.land/x/rimbu@0.13.5/table/custom/index.ts";

Constructors

new
TableBuilder(context: TpR["context"], source?: Table.NonEmpty<R, C, V>)

Type Parameters

R
C
V
Tp extends ContextImplTypes
optional
TpR extends Tp & Row<R, C, V> = Tp & Row<R, C, V>

Properties

_lock: number
optional
_rowMap: RMap.Builder<R, RMap.Builder<C, V>>
_size: number
addEntries: (source: StreamSource<readonly [R, C, V]>) => boolean
addEntry: (entry: readonly [R, C, V]) => boolean
readonly
amountRows: number
build: () => TpR["normal"]
buildMapValues: <V2>(mapFun: (
value: V,
row: R,
column: C,
) => V2
) => any
forEach: (f: (
entry: [R, C, V],
index: number,
halt: () => void,
) => void
, state?: TraverseState
) => void
get: <UR, UC, O>(
row: RelatedTo<R, UR>,
column: RelatedTo<C, UC>,
otherwise?: OptLazy<O>,
) => V | O
getRow: <UR>(row: RelatedTo<R, UR>) => any
hasRowKey: <UR>(row: RelatedTo<R, UR>) => boolean
hasValueAt: <UR, UC>(row: RelatedTo<R, UR>, column: RelatedTo<C, UC>) => boolean
readonly
isEmpty: boolean
modifyAt: (
row: R,
column: C,
options: { ifNew?: OptLazyOr<V, Token>; ifExists?: (currentValue: V, remove: Token) => V | Token; },
) => boolean
remove: <UR, UC, O>(
row: RelatedTo<R, UR>,
column: RelatedTo<C, UC>,
otherwise?: OptLazy<O>,
) => V | O
removeEntries: <UR = R, UC = C>(entries: StreamSource<[RelatedTo<R, UR>, RelatedTo<C, UC>]>) => boolean
removeRow: <UR>(row: RelatedTo<R, UR>) => boolean
removeRows: <UR>(rows: StreamSource<RelatedTo<R, UR>>) => boolean
readonly
rowMap: RMap.Builder<R, RMap.Builder<C, V>>
set: (
row: R,
column: C,
value: V,
) => boolean
readonly
size: number
updateAt: <O>(
row: R,
column: C,
update: Update<V>,
otherwise?: OptLazy<O>,
) => V | O