Skip to content

Commit e268500

Browse files
author
Jan-Olof Hendig
committed
Make Any.deepmap available in the search box
1 parent 38b77c4 commit e268500

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/Type/Any.pod6

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,15 @@ C<map> will iterate over the invocant and apply the number of positional
158158
parameters of the code object from the invocant per call. The returned values
159159
of the code object will become elements of the returned C<Seq>.
160160
161-
=head2 method deepmap(&block -->List) is nodal
161+
=head2 method deepmap
162+
163+
Defined as:
164+
165+
method deepmap(&block -->List) is nodal
162166
163167
C<deepmap> will apply C<&block> to each element and return a new C<List> with
164168
the return values of C<&block>, unless the element does the C<Iterable> role.
165-
For those elements C<deepmap> will decent recursively into the sublist.
169+
For those elements C<deepmap> will descend recursively into the sublist.
166170
167171
dd [[1,2,3],[[4,5],6,7]].deepmap(*+1);
168172
# OUTPUT«[[2, 3, 4], [[5, 6], 7, 8]]␤»

0 commit comments

Comments
 (0)