# New Ticket Created by Itsuki Toyota
# Please include the string: [perl #130248]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=130248 >
See the following results:
$ perl6 -e 'my \a = gather for ^Inf { take $_ }; say do for ^3 {
a.iterator.pull-one }'
This Seq has already been iterated, and its values consumed
(you might solve this by adding .cache on usages of the Seq, or
by assigning the Seq into an array)
in code at -e line 1
in block <unit> at -e line 1
It think that do-for idiom can't exhausts the sequence in theory, because the
variable \a is a infinite list and this idiom calls pull-one method only three
times.
$ perl6 --version
This is Rakudo version 2016.11-105-gae614f9 built on MoarVM version
2016.11-25-g4be6b38
implementing Perl 6.c.