Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Further clarification closes #2689
  • Loading branch information
JJ committed Mar 26, 2019
1 parent c1288c8 commit a569bbb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/Language/list.pod6
Expand Up @@ -361,9 +361,10 @@ very context sensitive on a syntactical level.
=head2 List assignment context
When a list appears on the right-hand side of an assignment into a C<@>-sigiled
variable, it is "eagerly" evaluated. This means that a C<Seq> will be iterated
until it can produce no more elements. This is one of the places you do not
When a list (or something that is going to be converted into a list) appears on
the right-hand side of an assignment into a C<@>-sigiled variable, it is
"eagerly" evaluated. This means that a C<Seq> will be iterated until it can
produce no more elements, for instance. This is one of the places you do not
want to put an infinite list, lest your program hang and, eventually, run out of
memory:
Expand All @@ -375,7 +376,7 @@ memory:
say @divisors; # OUTPUT: «[2 5 7]␤»
The L<C<gather> statement\/language/control#index-entry-lazy_list_gather>
creates a lazy list, which is eagerly evaluated when assigned to C<@divisors>
creates a lazy list, which is eagerly evaluated when assigned to C<@divisors>.
=head2 Flattening "context"
Expand Down

0 comments on commit a569bbb

Please sign in to comment.