Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ranges starting with @A.. and (1,2,3).. work (right hand side already…
… worked)
  • Loading branch information
lizmat committed Aug 31, 2013
1 parent 2d5abca commit 5d09997
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Range.pm
Expand Up @@ -28,7 +28,8 @@ my class Range is Iterable is Cool does Positional {
multi method new(Real $min, $max, :$excludes_min, :$excludes_max) {
nqp::create(self).BUILD($min, $max.Real, $excludes_min, $excludes_max)
}
multi method new($min, $max, :$excludes_min, :$excludes_max) {
multi method new($min is copy, $max, :$excludes_min, :$excludes_max) {
$min = +$min if $min ~~ any(Parcel|List);
nqp::create(self).BUILD($min, $max, $excludes_min, $excludes_max)
}

Expand Down

0 comments on commit 5d09997

Please sign in to comment.