Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
logic infixes shouldn't flatten
  • Loading branch information
TimToady committed Sep 20, 2015
1 parent 885cf27 commit 7173d13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/operators.pm
Expand Up @@ -600,7 +600,7 @@ sub REQUIRE_IMPORT($package-name, *@syms) {
}
$package
}
sub infix:<andthen>(*@a) {
sub infix:<andthen>(**@a) {
return Bool::True unless @a;
my Mu $current := @a.shift;
for @a {
Expand All @@ -612,7 +612,7 @@ sub infix:<andthen>(*@a) {
}
$current;
}
sub infix:<notandthen>(*@a) {
sub infix:<notandthen>(**@a) {
return Bool::True unless @a;
my Mu $current := @a.shift;
for @a {
Expand All @@ -624,7 +624,7 @@ sub infix:<notandthen>(*@a) {
}
$current;
}
sub infix:<orelse>(*@a) {
sub infix:<orelse>(**@a) {
return Nil unless @a;
my Mu $current := @a.shift;
for @a {
Expand Down

0 comments on commit 7173d13

Please sign in to comment.