Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When crossing two lists, we don't need to shove the op through METAOP…
…_REDUCE; it's a binary op already. Just use it.
  • Loading branch information
jnthn committed Nov 1, 2011
1 parent f71cff1 commit cb63745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/metaops.pm
Expand Up @@ -13,7 +13,7 @@ sub METAOP_REVERSE(\$op) {

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

0 comments on commit cb63745

Please sign in to comment.