Skip to content

Commit 3d492d2

Browse files
committed
Adds deprecation notice
Which is taken from [here](https://github.com/perl6/roast/blob/master/docs/announce/6.d.md)
1 parent 48d0f93 commit 3d492d2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/Type/Any.pod6

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,11 @@ don't really have keys.
600600
601601
Defined as:
602602
603-
method flatmap(Any:U: &code --> Seq)
603+
method flatmap(&block, :$label)
604604
605-
Coerces the invocant to a C<list> by applying its
606-
L«C<.list>|/routine/list» method and uses
607-
L«C<List.flatmap>|/type/List#method_flatmap» on it.
608-
609-
say Any.flatmap({.reverse}); # OUTPUT: «((Any))␤»
605+
N<This method is deprecated in 6.d and will be removed in 6.e>
606+
Applies L<C<map>|/type/Any#method_map> to every element with the block and label
607+
used as an argument and flattens out the result using C<.flat>.
610608
611609
=head2 method roll
612610

0 commit comments

Comments
 (0)