Search code examples
pythonnode.jspython-itertools

Is there an equivalent to Pythons iterator tools for Node.js?


I'm trying to port some code that uses Python's iterator tools to Node, however I'm not seeing any analogs out there.

I'm specifically looking for a replacement for itertools.combination()

I've seen this one, but it's incomplete and out of date: node-intertools


Solution

  • I was not happy with the available solutions, so I wrote my own: https://www.npmjs.com/package/iter-tools