Created
August 21, 2019 19:20
-
-
Save Whateverable/78e3ea3382d1f493235822be58898253 to your computer and use it in GitHub Desktop.
Whateverable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015-09-12T09:06:45Z #perl6 <nine> think: of Seq as an iterator. You can iterate it and when it's empty, it's empty. There's no magic saving of the values for repeated access. That's the whole point because saving the iterated list in a for foo() { } was quite costly. Now if foo() returns a Seq, we waste neither time nor memory storing values that you will never access anymore. Simplest and recommended way to store them is by assigning to an array. Another way is to ask the Seq to create a cac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment