Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
proto and slurpy sub versions of reverse.
Just realized reverse.t won't work without these!
  • Loading branch information
colomon committed Dec 9, 2009
1 parent ff5edcf commit 5bc904a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/Any-list.pm
Expand Up @@ -19,7 +19,7 @@ augment class Any {
}
}
method reverse() {
multi method reverse() {
my @result;
for @.list {
@result.unshift($_);
Expand All @@ -28,4 +28,8 @@ augment class Any {
}
}
our proto sub reverse(@values) { @values.reverse; }
our multi sub reverse(*@v) { @v.reverse; }
# vim: ft=perl6

0 comments on commit 5bc904a

Please sign in to comment.