Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simplified Range.pick a bit
Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
Tadeusz Sośnierz authored and moritz committed Nov 7, 2010
1 parent 142d220 commit 690e370
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/Range.pm
Expand Up @@ -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) {
Expand Down

0 comments on commit 690e370

Please sign in to comment.