Re: Iterating through two arrays at once

2003-12-11 Thread Jonathan Scott Duff
On Wed, Dec 10, 2003 at 11:44:15PM -0500, Joe Gottman wrote: >In Perl 6, how will it be possible to iterate through two arrays at the > same time? According to Apocalypse 4, the syntax is > for @a; @b -> $a; $b { > > According to the book "Perl 6 Essentials" the syntax is > for zip(

Re: Iterating through two arrays at once

2003-12-10 Thread Larry Wall
On Wed, Dec 10, 2003 at 11:44:15PM -0500, Joe Gottman wrote: :In Perl 6, how will it be possible to iterate through two arrays at the : same time? According to Apocalypse 4, the syntax is : for @a; @b -> $a; $b { : : According to the book "Perl 6 Essentials" the syntax is : for zip(

Iterating through two arrays at once

2003-12-10 Thread Joe Gottman
In Perl 6, how will it be possible to iterate through two arrays at the same time? According to Apocalypse 4, the syntax is for @a; @b -> $a; $b { According to the book "Perl 6 Essentials" the syntax is for zip(@a, @b) -> $a, $b { Which of these is right? (of course, this being Perl