是否有等效于Node.js的Python迭代器工具? [英] Is there an equivalent to Pythons iterator tools for Node.js?

查看:76
本文介绍了是否有等效于Node.js的Python迭代器工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一些使用Python的迭代器工具的代码移植到节点,但是我在那里看不到任何类似物.

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

我正在专门寻找itertools.combination()的替代品

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

我已经看过这个,但是它不完整且过时: node-intertools

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

推荐答案

我对可用的解决方案不满意,因此我写了自己的解决方案: https://www.npmjs.com/package/iter-tools

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

这篇关于是否有等效于Node.js的Python迭代器工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆