Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anything like Python Itertools in Perl?

Python has great module for working with iterators called itertools Is there any analog in Perl?

I know about Object-Iterate but it has only imap and igrep.

like image 339
alexanderkuk Avatar asked Oct 27 '25 06:10

alexanderkuk


2 Answers

List::Gen does a lot of that.

like image 172
Bill Ruppert Avatar answered Oct 29 '25 19:10

Bill Ruppert


While I don't know exactly what iterators you need, CPAN is full of them, it really depends on what you need. I needed iterators over all the combinations possible in an array: there's a CPAN module for that.

like image 23
Joel Berger Avatar answered Oct 29 '25 19:10

Joel Berger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!