Though I'm too embarassed to ask such a simple question on p6l, I couldn't find any Perl 6 list of lists example code. :-( ... So dear monks, how should I write the perl 5 code below in perl 6?
my @z = ( [ 'a1', 'a2' ], [ 'b1', 'b2', 'b3' ] ); for my $r (@z) { print "@$r\n" }
In reply to perl 6 list of lists example code sought by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |