Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implementation note about flattening/Slip.
  • Loading branch information
pmichaud committed Jun 23, 2015
1 parent f617745 commit dc32b3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S07-glr-draft.pod
Expand Up @@ -59,6 +59,9 @@ array.

=head2 Flattening contexts

(Update 2015-06-22: Flattening behavior may be implemented internally
via a C<:flat> flag on C<Slip> objects, described below.)

C<List> objects can have other container objects as elements.
In some contexts we want to interpolate the values of container
objects into the surrounding C<List>, while in other contexts we
Expand All @@ -67,7 +70,7 @@ known as "flattening".

The C<Iterable> type is performed by container and generator objects
that will interpolate their values in flattening contexts. C<List>,
and C<Range> objects are C<Iterable>.
C<Array>, and C<Range> objects are C<Iterable>.

Flattening occurs when assigning or initializing an array:

Expand Down

0 comments on commit dc32b3b

Please sign in to comment.