in reply to Re: Perl6 Contest #2: P6 That Doesn't Look Like P5
in thread Perl6 Contest #2: P6 That Doesn't Look Like P5
If you have your trusty zipwith available:
then you can change that zip line to:sub zipwith ( Code $with, *@lists ) { gather { while any( @lists ) { take $with.( @lists>>.shift ); } } }
zipwith( { $^a[ $^i ] }, @loop, @pos );
|
---|
In Section
Seekers of Perl Wisdom