Skip to content

Commit c97dda0

Browse files
committed
Adds example to nodemap, refs #1720
1 parent 8e68d75 commit c97dda0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/Type/Any.pod6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ C<nodemap> doesn't.
269269
say [[2,3], [[4,5],6,7], 7].map({.elems == 1 ?? $_ !! slip});
270270
# OUTPUT: «(7)␤»
271271
272+
When applied to C<Associative>s, it will act on the values:
273+
274+
{ what => "is", this => "thing" }.nodemap( *.flip ).say;
275+
# OUTPUT: «{this => gniht, what => si}␤»
276+
272277
=head2 method flat
273278
274279
Defined as:

0 commit comments

Comments
 (0)