Flattening argument lists is not yet working in Pugs, so I can't easily play
around with this one, hence this question.

In Pugs, you can process a simple list of lists like this:

my @lol = ( [ '1a', '1b' ], [ '2a', '2b' ], [ '3a', '3b' ] );
for @lol -> $t { say "1st='$t[0]' 2nd='$t[1]'" }

Yet the $t[0] and $t[1] look untidy to me, so I'd prefer to specify that the
for closure block takes two parameters, something like:

for ???? -> $x, $y { say "1st='$x' 2nd='$y'" }

But I have no clue what to put in place of ???? above.

Thanks,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 

Reply via email to