Syntactic Confectionery Delight | |
PerlMonks |
Re^5: [Perl6] Seq iterator already consumedby duelafn (Parson) |
on Jun 20, 2019 at 03:36 UTC ( [id://11101603]=note: print w/replies, xml ) | Need Help?? |
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,
In Section
Seekers of Perl Wisdom
|
|