Skip to content

Commit

Permalink
Make ListIter.infinite return Bool when it can't make up it's mind.
Browse files Browse the repository at this point in the history
This at least makes (1..Inf).uniq.infinite return Bool rather than Mu
  • Loading branch information
lizmat committed Jul 20, 2013
1 parent 819d371 commit 9db2d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ListIter.pm
Expand Up @@ -64,7 +64,7 @@ my class ListIter {
$!rest $!rest
?? nqp::istype(nqp::atpos($!rest, 0), Iterable) ?? nqp::istype(nqp::atpos($!rest, 0), Iterable)
&& nqp::atpos($!rest,0).infinite && nqp::atpos($!rest,0).infinite
|| Mu || Bool
!! Bool::False !! Bool::False
} }


Expand Down

0 comments on commit 9db2d52

Please sign in to comment.