Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add back in Range.pick multi which takes no arguments, as it is a hug…
…e optimization for large Ranges.
  • Loading branch information
colomon committed Nov 16, 2010
1 parent f73bf4d commit 94b52d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Range.pm
Expand Up @@ -75,6 +75,10 @@ class Range is Iterable does Positional {
$.min before $topic || (!$.excludes_min && !($.min after $topic));
}

multi method pick() {
self.roll;
}

multi method pick(1) {
self.roll;
}
Expand Down

0 comments on commit 94b52d1

Please sign in to comment.