Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update METAOP_CROSS to honor associativity of the base operator.
  • Loading branch information
pmichaud committed Jun 27, 2012
1 parent b639af6 commit 5e3dfe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/metaops.pm
Expand Up @@ -17,7 +17,7 @@ sub METAOP_REVERSE(\$op) {

sub METAOP_CROSS(\$op, &reduce) {
-> **@lol {
my $rop = @lol.elems == 2 ?? $op !! METAOP_REDUCE_LEFT($op);
my $rop = @lol.elems == 2 ?? $op !! &reduce($op);
my @l;
my @v;
@l[0] = (@lol[0].flat,).list;
Expand Down

0 comments on commit 5e3dfe9

Please sign in to comment.