Skip to content

Commit

Permalink
Rename first-rindex to last-index
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 4, 2014
1 parent 424d99c commit 5622537
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/core/Any.pm
Expand Up @@ -143,7 +143,7 @@ my class Any { # declared in BOOTSTRAP
self.map: { $index++; return $index if $_ ~~ $test };
Nil;
}
method first-rindex(Mu $test) {
method last-index(Mu $test) {
my $index = self.elems;
self.reverse.map: { $index--; return $index if $_ ~~ $test };
Nil;
Expand Down Expand Up @@ -369,9 +369,9 @@ proto first-index(|) {*}
multi first-index(Mu $test, @values) { @values.first-index($test) }
multi first-index(Mu $test, *@values) { @values.first-index($test) }

proto first-rindex(|) {*}
multi first-rindex(Mu $test, @values) { @values.first-rindex($test) }
multi first-rindex(Mu $test, *@values) { @values.first-rindex($test) }
proto last-index(|) {*}
multi last-index(Mu $test, @values) { @values.last-index($test) }
multi last-index(Mu $test, *@values) { @values.last-index($test) }

proto join(|) { * }
multi join($sep = '', *@values) { @values.join($sep) }
Expand Down
2 changes: 1 addition & 1 deletion t/spectest.data
Expand Up @@ -695,10 +695,10 @@ S32-list/combinations.t
S32-list/end.t
S32-list/first.t
S32-list/first-index.t
S32-list/first-rindex.t
S32-list/grep.t
S32-list/grep-index.t
S32-list/join.t
S32-list/last-index.t
S32-list/map_function_return_values.t
S32-list/map.t
S32-list/minmax.t
Expand Down

0 comments on commit 5622537

Please sign in to comment.