Skip to main content
Module

x/rimbu/mod.ts>SortedTableHashColumn.NonEmpty

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

A non-empty type-invariant immutable Table of row key type R, column key type C, and value type V. In the Table, a combination of a row and column key has exactly one value.

Examples

Example 1

const t1 = SortedTableHashColumn.empty<number, string, boolean>()
const t2 = SortedTableHashColumn.of([1, 'a', true], [2, 'a', false])