Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a note about list operator flattening.
  • Loading branch information
pmichaud committed Jun 23, 2015
1 parent 41876e9 commit 65be127
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions S07-glr-draft.pod
Expand Up @@ -88,6 +88,8 @@ Flattening also occurs using the C<flat> contextualizer:
Slurpy array parameters declared with a single C<*> marker lazily
flatten the arguments into the array.

List operators such as reduce, cross, and zip flatten their arguments.

Conjecture: An array constructor preceded by a colon flattens its
interior contents. Array constructors without the colon do not flatten
the interior.
Expand Down Expand Up @@ -287,6 +289,7 @@ Some miscellaneous notes on list-based methods:
@list.list # may return self
@list.kv # returns (0, @list[0], 1, @list[1], ...)
# not ( (0, @list[0]), (1, @list[1]), ...)
infix:<Z> # flattens its arguments

=item *

Expand Down

0 comments on commit 65be127

Please sign in to comment.