On 03/31/2011 11:16 PM, Aaron Sherman wrote:
> # parens on the arglist causes flattening?
> $ ../rakudo/perl6 -e 'for 1 .. 2 X 4 .. 5 -> ($a, $b) { say $a.perl, $b.perl
> }'
> Not enough positional parameters passed; got 0 but expected 2 in sub-signature
The error message already tells you that y
[This might be better suited to p6c if it turns out that this is a
bug, but I'll assume it's not to start...]
So, last night sorear said, "I might write the loop as for 2 .. $lim X
2 .. $lim -> $a, $b {"
I played around with this a bit, and I'm unclear on how this works.
Here's some examples that