Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
distinguish compositions of one-arg vs many-arg
  • Loading branch information
TimToady committed Oct 2, 2015
1 parent e7ec205 commit 8a195fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/operators.pm
Expand Up @@ -631,7 +631,7 @@ sub infix:<orelse>(**@a) {
$current;
}

sub infix:<> (&f, &g --> Block) { -> |args { f g |args } }
sub infix:<> (&f, &g --> Block) { (&f).count > 1 ?? -> |args { f |g |args } !! -> |args { f g |args } }
my &infix:<o> := &infix:<>;

# vim: ft=perl6 expandtab sw=4

0 comments on commit 8a195fa

Please sign in to comment.