Python有great module for working with iterators called itertools Perl中是否有类似的东西?Perl中是否有类似Python Itertools的东西?
我知道关于Object-Iterate,但它只有imap和igrep。
Python有great module for working with iterators called itertools Perl中是否有类似的东西?Perl中是否有类似Python Itertools的东西?
我知道关于Object-Iterate,但它只有imap和igrep。
List::Gen做了很多。
虽然我不知道你需要什么迭代器,CPAN is full of them,它真的取决于你需要什么。我需要遍历数组中所有可能组合的迭代器:有一个CPAN module for that。
非常有趣的模块,谢谢。它需要什么版本的Perl? – alexanderkuk
5.8.6,参见[metafile](http://search.cpan.org/dist/List-Gen/META.yml)。 – daxim