Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix "This Seq has already been iterated" when tapping a feed
@DaTa <== map {$_ + 1} <== @tap <== grep {$_ % 2} <== eager @DaTa;
pushed the Seq from grep into @tap and then tried to re-use the same Seq
for further processing of the feed in map. Have to .list it to do that.

Fixes t/spec/S03-feeds/basic.t
  • Loading branch information
niner committed Aug 26, 2015
1 parent fe1d45a commit 98ec245
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -5576,7 +5576,10 @@ Compilation unit '$file' contained the following violations:
QAST::Op.new(
:op('bind'),
QAST::Var.new( :scope('local'), :name($tmp), :decl('var') ),
QAST::Op.new( :op('call'), $result )
QAST::Op.new(
:op('callmethod'), :name('list'),
QAST::Op.new( :op('call'), $result )
),
),
QAST::Op.new(
:op('callmethod'), :name('push'),
Expand Down

0 comments on commit 98ec245

Please sign in to comment.