You can always simulate your own n-ary map using gather:
Although allowing map to take multiple items from the list at once would be nicer, and it's something I've wanted rather often.gather { for @loop Y @pos -> $arr, $i { take $a[ $i ]; } }
In reply to Re^2: Perl6 Contest #2: P6 That Doesn't Look Like P5
by kelan
in thread Perl6 Contest #2: P6 That Doesn't Look Like P5
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |