3 ms·
Most people use underscore/lodash for this stuff. The difference is that the js transducers libraries don't create intermediate arrays, only do enough work to p
by grayrest 12y ago
Most people use underscore/lodash for this stuff. The difference is that the js transducers libraries don't create intermediate arrays, only do enough work to produce the requested output, and work on top of anything that can be coerced into the iteration protocol. I've seen demos of using Facebook's Immutable JS, CSP.js [1], and I don't see why you couldn't put them on top of Typed Arrays or a FRP library like Kefir.
[1] http://jlongster.com/s/nationjs-slides/ http://jlongster.com/s/nationjs-slides/
- ultimape 12y agoYeah, the overhead of creating intermediate typed arrays is exactly what I'm trying to avoid with this.