in reply to [Perl6] comma vs semicolon in 'each' ?
pugs doesn't really know about the "slice" context, which is something like a non-flattening list context.
So the S29 example is fine, although I like the infix zip ooperator Z better:
for @a Z @b Z @c -> $x, $y, $z -> { .... }
So whatever you do, don't confund pugs and S\d\d ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Perl6] comma vs semicolon in 'each' ?
by John M. Dlugosz (Monsignor) on Feb 27, 2008 at 00:22 UTC | |
by moritz (Cardinal) on Feb 27, 2008 at 08:49 UTC | |
by John M. Dlugosz (Monsignor) on Feb 27, 2008 at 09:01 UTC | |
by TimToady (Parson) on Feb 27, 2008 at 17:27 UTC | |
by John M. Dlugosz (Monsignor) on Feb 29, 2008 at 03:59 UTC |