Skip to content

Commit 049f91e

Browse files
author
Jan-Olof Hendig
committed
Some tidying up
1 parent 7b42420 commit 049f91e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

doc/Type/List.pod6

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,22 +1041,18 @@ to C<$format> and where each element is separated by C<$separator>.
10411041
For more information about formats strings, see L<sprintf|/routine/sprintf>.
10421042
10431043
my @a = 8..11;
1044-
say @a.fmt('%03d', ','); # 008,009,010,011
1044+
say @a.fmt('%03d', ','); # 008,009,010,011
10451045
10461046
=head2 method from
10471047
10481048
Assumes the list contains L«C<Match> objects|/type/Match» and returns the
10491049
value of C<.from> called on the first element of the list.
10501050
10511051
'abcdefg' ~~ /(c)(d)/;
1052-
say $/.list.from; # 2
1052+
say $/.list.from; # 2
10531053
10541054
"abc123def" ~~ m:g/\d/;
1055-
say $/.list.from; # 3
1056-
1057-
Assumes the C<List> contains L«C<Match> objects|/type/Match», such as the
1058-
C<$/> variable being a C<List>, when using C<:g> modifier in regexes. Returns the
1059-
value of C<.from> called on the first element of the list.
1055+
say $/.list.from; # 3
10601056
10611057
=head2 method to
10621058

0 commit comments

Comments
 (0)