- 1.2.2Latest
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.6
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.10.4
- 10.0.4
- 0.10.4-alpha
- 0.10.3
- @rimbu/core@0.9.13
- 0.10.2
- 0.10.1
- 0.10.0
- @rimbu/core@0.9.11
- @rimbu/graph@0.9.11
- 0.8.9
- 0.8.8
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3-alpha.2
- 0.8.3-alpha.1
- 0.8.3-alpha.0
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.11
- 0.6.10
- 0.6.9
- @rimbu/typical@0.2.0
- 0.6.8
- 0.6.7
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.5.14
- v0.5.13
Immutable collections and tools for TypeScript
Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools. Its main aim is to allow programmers to create safe and performant programs without getting in the way. It is inspired by various other collection libraries, mainly Java’s Guava library, the Java 8 Collection library, and Scala’s collection library plus various ideas from the Scala community.
Quick overview of features and benefits
- Extensive set of collection types to cover many problems that would otherwise require more coding to solve.
- Advanced typing uses the TS compiler to offer strict type inference without much explicit typing, and to prove collection non-emptiness.
- Avoid ‘monad’ style programming / chaining (e.g. using types like Option) by offering flexible fallback options for simple methods that can ‘fail’.
- No external dependencies.
- Provides sane defaults but allows extensive customization and configuration.
- A novel and efficient immutable random-access List implementation.
For complete documentation please visit the Rimbu Docs or the Rimbu API Docs.
Or Try Out Rimbu in CodeSandBox.
Main exports
The main exported packages are:
Name | Description |
---|---|
@rimbu/bimap | a bidirectional map in which keys and values have a one-to-one mapping |
@rimbu/bimultimap | a bidirectional multimap in which keys and values have a many-to-many mapping |
@rimbu/collection-types | definitions for many of the generic collection types, used to derive more specific implementations |
@rimbu/common | contains public types and functions that are used throughout the whole library |
@rimbu/core | a convenience package that exports most of the main types from the other packages |
@rimbu/deep | offers tools to use handle plain JS objects as immutable objects. library |
@rimbu/graph | provides various graph implementations to represent data in forms of nodes and edges |
@rimbu/hashed | provides a HashMap and HashSet implementation, using hash functions to efficiently retrieve keys |
@rimbu/list | provides the List datastructure containing an ordered sequence of elements that can be manipulated and accessed randomly in an efficient way |
@rimbu/multimap | provides a map in which keys and values have a one-to-many mapping |
@rimbu/multiset | provides a set in which elements can occur multiple times |
@rimbu/ordered | provides the OrderedSet and OrderedMap collections, that keep insertion order |
@rimbu/sorted | provides a SortedMap and SortedSet implementation, using compare functions to efficiently keep the elements sorted |
@rimbu/stream | contains methods to easily manipulate sequences of data |
@rimbu/table | provides various Table data structures where a combination of a row key and column key maps to a single |
Development: Getting started with this monorepo
- Clone this repository
- Run
yarn setup
To build all the packages: yarn build
To run the tests: yarn test
Author
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.