Skip to content

Commit

Permalink
Partially fix RT #130956
Browse files Browse the repository at this point in the history
For very large integer values, like: 42 xx 99999999999 .  The thunk
version is not yet lazy, still looking at two spectest failures :-(
  • Loading branch information
lizmat committed Mar 10, 2017
1 parent 9d7c0ab commit f190f24
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1406,17 +1406,17 @@ multi sub infix:<xx>(&x, Int $n) {
Seq.new(Rakudo::Iterator.ReifiedList($list))
}
multi sub infix:<xx>(Mu \x, Num() $n) {
infix:<xx>(x, $n == Inf ?? Whatever !! $n.Int);
Seq.new(nqp::if(
$n == Inf,
Rakudo::Iterator.UnendingValue(x),
Rakudo::Iterator.OneValueTimes(x,$n.Int)
))
}
multi sub infix:<xx>(Mu \x, Whatever) {
Seq.new(Rakudo::Iterator.UnendingValue(x))
}
multi sub infix:<xx>(Mu \x, Int:D $n) is pure {
Seq.new(nqp::if(
nqp::isgt_i($n,0),
Rakudo::Iterator.OneValueTimes(x,$n),
Rakudo::Iterator.Empty
))
Seq.new(Rakudo::Iterator.OneValueTimes(x,$n))
}

proto sub reverse(|) { * }
Expand Down

0 comments on commit f190f24

Please sign in to comment.