🛠️ @aureooms/js-itertools
© xkcd.com
Python's iterable and iterator library for JavaScript. See docs. Parent is @aureooms/js-library.
⚠️ The code requiresregeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
cycle( chain( [ [ 0 , 1 , 2 ] , [ 3 , 4 , 5 ] ] ) ) ; // 0 1 2 3 4 5 0 1 ...
🔗 References in Python and JavaScript
- https://docs.python.org/3/library/itertools.html
- http://mochi.github.io/mochikit/doc/html/MochiKit/Iter.html
- https://github.com/cweider/js-itertools
- http://itertoolsjs.com
- https://github.com/thegoleffect/node-itertools
- http://rfw.name/sloth.js
- https://github.com/lodash/lodash
- https://github.com/erikrose/more-itertools
- https://github.com/StreetStrider/aux.js