Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add deprecated excludes_min/excludes_max methods to Range
  • Loading branch information
lucasbuchala authored and moritz committed Jan 1, 2015
1 parent c8c47aa commit fcd34be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Range.pm
Expand Up @@ -196,6 +196,9 @@ my class Range is Iterable is Cool does Positional {
my $floor := $diff.floor;
return $floor + 1 - ($floor == $diff ?? $.excludes-max !! 0);
}

method excludes_min() { DEPRECATED('excludes-min', |<2014.12 2015.12>); $!excludes-min }
method excludes_max() { DEPRECATED('excludes-max', |<2014.12 2015.12>); $!excludes-max }
}

sub infix:<..>($min, $max) {
Expand Down

0 comments on commit fcd34be

Please sign in to comment.