Skip to content

Commit a07a779

Browse files
committed
Document sub form of "flat"
1 parent ec41c3e commit a07a779

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/Type/List.pod

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,18 @@ passes C<(1, 2)> and C<< <a b> >> in turn to the block, leading to a total
217217
of two iterations and the result sequence C<"1,2", "a,b">.
218218
See L<method flatmap|/type/List/#method_flatmap> for an alternative that flattens.
219219
220+
=head2 sub flat
221+
222+
Defined as:
223+
224+
sub flat (**@list is raw)
225+
226+
Constructs a list which contains any arguments provided in the order
227+
provided, and returns the result of calling the C<.flat> method (L<inherited
228+
from C<Any>|/type/Any#method_flat>) on that list:
229+
230+
flat 1, (2, (3, 4), $(5, 6))); # (1, 2, 3, 4, $(5, 6)).Seq
231+
220232
=head2 method flatmap
221233
222234
Defined as:

0 commit comments

Comments
 (0)