Skip to content

Latest commit

 

History

History

table-sorted-row

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@rimbu/table-sorted-row

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.

Installation

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

recommended tsconfig settings

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
  }
}

Usage

import { SortedTableSortedColumn } from '@rimbu/table-sorted-row';

console.log(
  SortedTableSortedColumn.of([1, 'a', true], [1, 'b', false]).toString()
);

Author

Arvid Nicolaas

Contributing

Feel very welcome to contribute to further improve Rimbu. Please read our Contributing guide.

Contributors

Made with contributors-img.

License

Licensed under the MIT License, Copyright © 2020-present Arvid Nicolaas.

See LICENSE for more information.