Again, the documentation for Seq:
A Seq represents anything that can lazily produce a sequence of values. A Seq is born in a state where iterating it will consume the values. However, calling .cache on a Seq will return a List that is still lazy, but stores the generated values for later access.
Good Day,
Dean
In reply to Re^5: [Perl6] Seq iterator already consumed
by duelafn
in thread [Perl6] Seq iterator already consumed
by Athanasius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |