Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't need the Whatever check anymore, labster++
  • Loading branch information
lizmat committed Apr 24, 2015
1 parent 7fe6f1b commit 0a7825f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/List.pm
Expand Up @@ -206,9 +206,7 @@ my class List does Positional { # declared in BOOTSTRAP
my Int $elems = self.elems;
return unless $elems;

my int $n = nqp::istype(number, Whatever) || number > $elems
?? $elems
!! number.Int;
my int $n = number > $elems ?? $elems !! number.Int;
return self.AT-POS($elems.rand.floor) if $n == 1;

my Mu $rpa := nqp::clone($!items);
Expand Down

0 comments on commit 0a7825f

Please sign in to comment.