Skip to content
Permalink
Browse files

s/Iterator/PredictiveIterator for 1dim shaped arrays

  • Loading branch information...
lizmat committed Sep 9, 2018
1 parent c2c9df1 commit cdf65305f87783cecfc25267832b7a7a0e71d7c5
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/Shaped1Array.pm6
@@ -164,7 +164,7 @@
Seq.new(Rakudo::Iterator.AntiPair(self.iterator))
}

my class Iterate does Iterator {
my class Iterate does PredictiveIterator {
has Mu $!reified;
has Mu $!desc;
has int $!pos;
@@ -209,7 +209,6 @@
)
}
method count-only() { nqp::elems($!reified) - $!pos - 1 }
method bool-only() { nqp::hllbool(self.count-only) }
method sink-all(--> IterationEnd) {
$!pos = nqp::elems($!reified)
}

0 comments on commit cdf6530

Please sign in to comment.
You can’t perform that action at this time.