Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make sub grep-index not swallow empty arrays
  • Loading branch information
FROGGS committed Aug 23, 2015
1 parent 93ade89 commit 59dc4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Any-iterable-methods.pm
Expand Up @@ -727,7 +727,7 @@ multi sub grep(Bool:D $t, *@v) { fail X::Match::Bool.new( type => 'grep' ) }

proto sub grep-index(|) {*}
multi sub grep-index(Mu $test, @values) { @values.grep-index($test) }
multi sub grep-index(Mu $test, *@values) { @values.grep-index($test) }
multi sub grep-index(Mu $test, **@values) { @values.grep-index($test) }
multi sub grep-index(Bool:D $t, *@v) {
fail X::Match::Bool.new(type => 'grep-index');
}
Expand Down

0 comments on commit 59dc4ae

Please sign in to comment.