Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Any-list.pm] removed Int constraint on $num in .pick

  • Loading branch information...
commit 6bf017930e6a020312229abdce7c93bf5ff7f857 1 parent f5065b6
@masak masak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/setting/Any-list.pm
View
4 src/setting/Any-list.pm
@@ -48,9 +48,9 @@ class Any is also {
}
}
- multi method pick(Int $num is copy = 1, :$replace) {
+ multi method pick($num is copy = 1, :$replace) {
- $num=floor($num);
+ $num .= floor;
if ($num == 1) {
return @.list[floor(@.list.elems.rand)];
Please sign in to comment.
Something went wrong with that request. Please try again.