Skip to content

Commit

Permalink
Make default PredictiveIterator.boolonly more HLLiish
Browse files Browse the repository at this point in the history
This should unbreak Travis / make test
  • Loading branch information
lizmat committed Sep 9, 2018
1 parent da663af commit e717e21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Iterator.pm6
Expand Up @@ -128,7 +128,7 @@ my role PredictiveIterator does Iterator {
# The "bool-only" method in a PredictiveIterator class returns a Bool
# to indicate whether the generator is (still) able to generate at least
# one value, *without* actually generating that value.
method bool-only(--> Bool:D) { nqp::hllbool(self.count-only) }
method bool-only(--> Bool:D) { self.count-only.Bool }
}

# vim: ft=perl6 expandtab sw=4
1 change: 0 additions & 1 deletion src/core/Rakudo/Iterator.pm6
Expand Up @@ -2510,7 +2510,6 @@ class Rakudo::Iterator {
method is-lazy() { nqp::hllbool($!is-lazy) }
method sink-all(--> IterationEnd) { $!times = 0 }
method count-only() { $!times }
method bool-only() { $!times.Bool }
}
method OneValueTimes(Mu \value,\times) { OneValueTimes.new(value,times) }

Expand Down

0 comments on commit e717e21

Please sign in to comment.