Skip to content
Browse files

Simplified Range.pick a bit

Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information...
1 parent 142d220 commit 690e3708e7ecd088e7b9ce66a71dc6547b500df8 @tadzik tadzik committed with moritz
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/Range.pm
View
5 src/core/Range.pm
@@ -75,9 +75,8 @@ class Range is Iterable does Positional {
$.min before $topic || (!$.excludes_min && !($.min after $topic));
}
- multi method pick($num = 1) {
- return self.roll if $num == 1;
- nextsame;
+ multi method pick(1) {
+ self.roll;
}
multi method pick(Whatever) {

0 comments on commit 690e370

Please sign in to comment.
Something went wrong with that request. Please try again.