Skip to content

Commit

Permalink
Range.reverse returns a list for now, because :by(-1) is NYI
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Apr 4, 2009
1 parent 105ec22 commit 2fb96f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/setting/Range.pm
Expand Up @@ -61,9 +61,7 @@ class Range is also {
}

our Range multi method reverse() {
Range.new(:from($.to), :from_exclusive($.to_exclusive),
:to($.from), :to_exclusive($.from_exclusive),
:by(-$.by))
@.list.reverse;
}

our Bool multi method true() {
Expand Down

0 comments on commit 2fb96f8

Please sign in to comment.