Socket
Book a DemoInstallSign in
Socket

seqen

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seqen

High performance sequence engine in Javascript that optimizes execution of sequences in Immutable.js

0.0.4
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

seqen

SEQEN

ghit.me npm version jest dependencies devDependencies Gitter License: 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.

See http://applitopia.github.io/seqen for detailed documentation.

Installation

npm install seqen

Example

const cmp=(a,b)=>(a>b?1:a<b?-1:0)

const recipe = (seq) => 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

Keywords

seqen

FAQs

Package last updated on 25 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.