https://github.com/applitopia/seqen
High performance sequence engine in Javascript that optimizes execution of sequences in Immutable.js
https://github.com/applitopia/seqen
Last synced: 8 months ago
JSON representation
High performance sequence engine in Javascript that optimizes execution of sequences in Immutable.js
- Host: GitHub
- URL: https://github.com/applitopia/seqen
- Owner: applitopia
- License: mit
- Created: 2017-07-31T05:48:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T08:54:49.000Z (over 3 years ago)
- Last Synced: 2025-09-04T00:24:37.737Z (9 months ago)
- Language: JavaScript
- Size: 1.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

SEQEN
=====
[](https://ghit.me/repo/applitopia/seqen)
[](https://badge.fury.io/js/seqen)
[](https://facebook.github.io/jest/)
[](https://david-dm.org/applitopia/seqen)
[](https://david-dm.org/applitopia/seqen?type=dev)
[](https://gitter.im/seqen/Lobby)
[](https://opensource.org/licenses/MIT)
High performance sequence engine in Javascript that optimizes execution of sequences in Immutable.js
and provides fast incremental processing of insert, update, and delete operations. Fully integrated with [DUXEN](https://applitopia.github.io/duxen).
See [http://applitopia.github.io/seqen](https://applitopia.github.io/seqen) for detailed documentation.
Installation
------------
```shell
npm install seqen
```
Example
------
```js
const cmp=(a,b)=>(a>b?1:a seq
.filter((v, k) => (k % 2 == 1))
.map((v) => v.toLowerCase())
.sort((a, b): number => cmp(a, b))
const map = Map().withMutations((map) => {
map.set(1, "Peter");
map.set(2, "Xavier");
map.set(3, "Alex");
map.set(4, "David");
map.set(5, "John");
});
const seqen = new Seqen(map, recipe);
const result1 = seqen.result().toIndexedSeq().toJS();
expect(result1).toEqual(["alex", "john", "peter"]);
```
License
-------
MIT