A Table
is an immutable 2-dimensional Map, containing row keys and column keys, where a combination of a row and column key can contain one value.
This package contains the sorted row implementations of Table. It was mainly split off from the @rimbu/table
package to reduce build time and memory usage.
This package exports the following main types:
Name | Description |
---|---|
SortedTableHashColumn<R, C, V> |
a Table where the row keys are sorted and the column keys are hashed |
SortedTableSortedColumn<R, C, V> |
a Table where the row keys and column keys are sorted |
For complete documentation please visit the Rimbu Docs.
Or Try Me Out in CodeSandBox.
All types are exported through @rimbu/core
. It is recommended to use this package.
To install separately:
yarn add @rimbu/table-sorted-row
or
npm i @rimbu/table-sorted-row
Rimbu uses advanced and recursive typing, potentially making the TypeScript compiler quite slow in some cases, or causing infinite recursion. It is recommended to set the following values in the tsconfig.json
file of your project:
{
"compilerOptions": {
"skipLibCheck": true,
"noStrictGenericChecks": true
}
}
import { SortedTableSortedColumn } from '@rimbu/table-sorted-row';
console.log(
SortedTableSortedColumn.of([1, 'a', true], [1, 'b', false]).toString()
);
Feel very welcome to contribute to further improve Rimbu. Please read our Contributing guide.
Made with contributors-img.
Licensed under the MIT License, Copyright © 2020-present Arvid Nicolaas.
See LICENSE for more information.