in reply to Abusing Map
I'm surprised nobody mentioned reduce yet.
Have a look a List::Util and/or List::MoreUtils
update
Sorry reduce is wrong (it returns a scalar) but close ...
update
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Abusing Map
by BrowserUk (Patriarch) on May 17, 2018 at 03:45 UTC | |
Re^2: Abusing Map
by ikegami (Patriarch) on May 18, 2018 at 08:07 UTC | |
Re^2: Abusing Map
by Anonymous Monk on May 17, 2018 at 14:36 UTC | |
by LanX (Saint) on May 17, 2018 at 16:05 UTC |
In Section
Seekers of Perl Wisdom