Have a look a List::Util and/or List::MoreUtils
Sorry reduce is wrong (it returns a scalar) but close ...
we had similar discussions before, but I was only able to find "reduce like iterators" yet
Too tired to look further.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
In reply to Re: Abusing Map
by LanX
in thread Abusing Map
by writch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |