|laziness, impatience, and hubris|
Re^4: [Perl6] Seq iterator already consumedby Athanasius (Archbishop)
|on Jun 19, 2019 at 06:51 UTC||Need Help??|
Thanks for this explanation! I apologise for not replying sooner, but I wanted to look at the whole question with a fresh pair of eyes first. You are absolutely right:
(i.e., 2 unconsumed Seq objects), but with .cache added to the split they are Lists:
— and therefore can be iterated as often as needed.
upon consideration, using .cache may be more efficient since it is lazy
Where is this documented?