Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update METAOP_ZIP to honor associativity of the base operator.
Fixes Z, (RT #113800) and some other issues.
  • Loading branch information
pmichaud committed Jun 27, 2012
1 parent 433956d commit b639af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/metaops.pm
Expand Up @@ -41,7 +41,7 @@ sub METAOP_CROSS(\$op, &reduce) {

sub METAOP_ZIP(\$op, &reduce) {
-> **@lol {
my $rop = METAOP_REDUCE_LEFT($op);
my $rop = @lol.elems == 2 ?? $op !! &reduce($op);
my @l = @lol.map({ (.flat,).list.item });
gather {
my $loop = 1;
Expand Down

0 comments on commit b639af6

Please sign in to comment.