gen-map
v0.0.0
Published
A generator based map that can chain multiple functions without creating intermediate array in between the computation.
Downloads
4
Readme
Example
$ npm install generator.pipe --save
const GP = require('generator.pipe');
const gen = GP([3,4,5,6])
.map(x => x * x)
.map(x => x + 3)
.apply()
console.log(gen.get(2)) //[12, 19]
console.log(gen.all()) // [28, 39]