Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 21, 2019 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/78e3ea3382d1f493235822be58898253 to your computer and use it in GitHub Desktop.
Save Whateverable/78e3ea3382d1f493235822be58898253 to your computer and use it in GitHub Desktop.
Whateverable
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