Skip to content

Commit

Permalink
Moves flat to the page of independent routines
Browse files Browse the repository at this point in the history
Adds another definition, and also eliminates implementation
details. Refs #2823, #1518
  • Loading branch information
JJ committed May 23, 2019
1 parent 649b9e9 commit f328984
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/Type/independent-routines.pod6
Expand Up @@ -926,6 +926,19 @@ sprintf Q:b "<b>%s</b>\n", "Perl 6"; # RESULT: «<b>Perl 6</b>␤␤»
sprintf "<b>\%s</b>\n", "Perl 6"; # RESULT: «<b>Perl 6</b>␤␤»
sprintf "<b>%s\</b>\n", "Perl 6"; # RESULT: «<b>Perl 6</b>␤␤»
=head2 sub flat
Defined as:
multi flat(**@list)
multi flat(Iterable \a)
Constructs a list which contains any arguments provided, and returns the result
of calling the C<.flat> method (L<inherited from C<Any>|/type/Any#method_flat>)
on that list or C<Iterable>:
say flat 1, (2, (3, 4), $(5, 6)); # OUTPUT: «(1 2 3 4 (5 6))␤»
=end pod

# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 comments on commit f328984

Please sign in to comment.