Skip to content
Permalink
Browse files

s/Iterator/PredictiveIterator for Uni

  • Loading branch information...
lizmat committed Sep 9, 2018
1 parent ad64c75 commit eefbe6e13eac8434cb1aca90fb560d1a7cd02245
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/Uni.pm6
@@ -13,7 +13,7 @@ my class Uni does Positional[uint32] does Stringy is repr('VMArray') is array_ty
$uni
}

my class UniList does Iterator {
my class UniList does PredictiveIterator {
has $!uni;
has int $!els;
has int $!i;
@@ -47,7 +47,6 @@ my class Uni does Positional[uint32] does Stringy is repr('VMArray') is array_ty
nqp::sub_i(nqp::elems($!uni), nqp::add_i($!i, 1)),
0))
}
method bool-only { nqp::hllbool(self.count-only) }
}
method list(Uni:D:) { Seq.new(UniList.new(self)) }

0 comments on commit eefbe6e

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