From 61ea3886375bbd70522b3d29945828769644c851 Mon Sep 17 00:00:00 2001 From: JJ Merelo Date: Thu, 25 Jan 2018 07:36:40 +0100 Subject: [PATCH] Changed "treats" to "coerces" This addresses @zoffixznet first concern in #1731 --- doc/Type/Any.pod6 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/Type/Any.pod6 b/doc/Type/Any.pod6 index 5828b3317..09cccdc47 100644 --- a/doc/Type/Any.pod6 +++ b/doc/Type/Any.pod6 @@ -528,11 +528,13 @@ Defined As: method flatmap(Any:U: &code --> Seq) -Treats the C as 1-item list and uses +Coerces the C to a C by applying the C<.list> method and uses L«C|/type/List#method_flatmap» on it. say Any.flatmap({.reverse}); # OUTPUT: «((Any))␤» +In the case of C, C returns a 1-item list, as is shown. + =head2 method roll Defined As: @@ -540,7 +542,7 @@ Defined As: multi method roll(--> Any) multi method roll($n --> Seq) -Treats the C as 1-item list and uses +Coerces the C to a C by applying the C<.list> method and uses L«C|/type/List#routine_roll» on it. say Any.roll; # OUTPUT: «(Any)␤» @@ -553,7 +555,7 @@ Defined As: multi method pick(--> Any) multi method pick($n --> Seq) -Treats the C as 1-item list and uses +Coerces the C to a C by applying the C<.list> method and uses L«C|/type/List#routine_pick» on it. say Any.pick; # OUTPUT: «(Any)␤» @@ -867,7 +869,7 @@ Defined As: method iterator(--> Iterator) -Treats the C as 1-item list and uses +Coerces the C to a C by applying the C<.list> method and uses L«C|/type/Iterable#method_iterator» on it. my $it = Any.iterator; @@ -880,7 +882,7 @@ Defined As: method grep(Mu $matcher, :$k, :$kv, :$p, :$v --> Seq) -Treats the C as 1-item list and uses +Coerces the C to a C by applying the C<.list> method and uses L«C|/type/List#routine_grep» on it. Based on C<$matcher> value can be either C<((Any))> or empty List.