Skip to content
Permalink
Browse files

Remove Predictiveness on 2 iterators

They appear to warrant further inspection for which I do not have the
energy at the moment.  Since this is just removing a optimization for
probably very few real-life cases, I think this is fine for now.
  • Loading branch information...
lizmat committed Sep 11, 2018
1 parent d970c2b commit f5ebad98a10cf11e29e50db4349df18a3b60e9af
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/core/metaops.pm6
@@ -223,7 +223,7 @@ multi sub METAOP_REDUCE_RIGHT(\op, \triangle) {
).elems), # reifies
$count
), # reifies
class :: does PredictiveIterator {
class :: does Iterator {
has $!op;
has $!reified;
has $!result;
@@ -263,8 +263,6 @@ multi sub METAOP_REDUCE_RIGHT(\op, \triangle) {
))
)
}
method bool-only(--> True) { };
method count-only() { nqp::p6box_i($!i) }
}.new(op,$v,$count,$i),
Rakudo::Iterator.OneValue(
nqp::if(
@@ -282,7 +280,7 @@ multi sub METAOP_REDUCE_RIGHT(\op, \triangle) {
).elems), # reifies
1
),
class :: does PredictiveIterator {
class :: does Iterator {
has $!op;
has $!reified;
has $!result;
@@ -310,8 +308,6 @@ multi sub METAOP_REDUCE_RIGHT(\op, \triangle) {
))
)
}
method bool-only(--> True) { };
method count-only() { nqp::p6box_i($!i) }
}.new(op,$v,$i),
Rakudo::Iterator.OneValue(
nqp::if(

0 comments on commit f5ebad9

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