Algorithm::Loops will now find my latest module. It includes a few looping constructs that I've posted to PerlMonks over the years (from the README.txt):
Algorithm::Loops - Looping constructs: NestedLoops, MapCar*, Filter, and NextPermute*
Algorithm::Loops provides several functions for doing different types of looping constructs:
Filter
Similar to C<map> but designed for use with s/// and other reflexive operations. Returns a modified copy of a list.
MapCar, MapCarU, MapCarE, and MapCarMin
All similar to C<map> but loop over multiple lists at the same time.
NextPermute and NextPermuteNum
Efficiently find all (unique) permutations of a list, even if it contains duplicate values.
NestedLoops
Simulate C<foreach> loops nested arbitrarily deep.
I'm posting this announcement because several people have asked for one or more of these routines to be made available in a module on CPAN, but even more so to make it easy for people to give me feedback on aspects of the module.
In particular, I'm interested in whether the documentation is clear. But any suggestions are welcome.
- tyeIn reply to Algorithm::Loops released by tye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |