Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: reduce like iteratorsby moritz (Cardinal) |
on Jan 03, 2011 at 19:20 UTC ( [id://880243]=note: print w/replies, xml ) | Need Help?? |
I couldn't resist writing a "golfed" Perl 6 version, heavily inspired by functional programming techniques:
The *-1 is a workaround for a rakudo bug, in a perfect Perl 6 implementation 1..* would work too.
In Section
Seekers of Perl Wisdom
|
|