Skip to content

Commit

Permalink
Revert "Add is-lazy named to gather iterator"
Browse files Browse the repository at this point in the history
This reverts commit b6afa71.

This is not going to be used, so remove it.
  • Loading branch information
lizmat committed Dec 25, 2019
1 parent 8e3b0a7 commit 55d0143
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/core.c/Rakudo/Iterator.pm6
Expand Up @@ -1721,14 +1721,11 @@ class Rakudo::Iterator {
has &!resumption;
has $!push-target;
has int $!wanted;
has Bool $.is-lazy;

my constant PROMPT = nqp::create(Mu);

method new(&block, \is-lazy) {
my \iter :=
nqp::p6bindattrinvres(nqp::create(self),self,'$!is-lazy',is-lazy);

method new(&block) {
my \iter = nqp::create(self);
my int $wanted;
my $taken;
my $taker := {
Expand Down Expand Up @@ -1859,7 +1856,7 @@ class Rakudo::Iterator {
)
}
}
method Gather(&block, :$is-lazy) { Gather.new(&block, $is-lazy.Bool) }
method Gather(&block) { Gather.new(&block) }

# Return an iterator for the given low/high integer value (inclusive).
# Has dedicated .push-all for those cases one needs to fill a list
Expand Down

0 comments on commit 55d0143

Please sign in to comment.