Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make .grep(Mu) use .ACCEPTS instead of ~~
moritz++ for the pointer
  • Loading branch information
lizmat committed Sep 23, 2015
1 parent 0cd80e4 commit be46c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Any-iterable-methods.pm
Expand Up @@ -361,14 +361,14 @@ augment class Any {
method pull-one() is rw {
my Mu $value;
until ($value := $!iter.pull-one) =:= IterationEnd {
return-rw $value if $value ~~ $!test;
return-rw $value if $!test.ACCEPTS($value);
}
IterationEnd
}
method push-all($target) {
my Mu $value;
until ($value := $!iter.pull-one) =:= IterationEnd {
$target.push($value) if $value ~~ $!test;
$target.push($value) if $!test.ACCEPTS($value);
}
IterationEnd
}
Expand Down

0 comments on commit be46c2e

Please sign in to comment.