From b76d5272d2e4a9c694a4072ee17a1bbc357516a8 Mon Sep 17 00:00:00 2001 From: Moray Date: Fri, 10 Aug 2018 19:21:30 +0100 Subject: [PATCH] Fixes issues with type List .list returns list not List so changed that --- doc/Type/Any.pod6 | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/doc/Type/Any.pod6 b/doc/Type/Any.pod6 index 320ce76d0..e41d8706c 100644 --- a/doc/Type/Any.pod6 +++ b/doc/Type/Any.pod6 @@ -472,7 +472,7 @@ Defined as: method Supply(--> Supply:D) is nodal -Coerces the invocant first to L by applying its +Coerces the invocant first to a C by applying its L«C<.list>|/routine/list» method, and then to L. =head2 method min @@ -567,7 +567,7 @@ Defined as: method flatmap(Any:U: &code --> Seq) -Coerces the invocant to L by applying its +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#method_flatmap» on it. @@ -580,7 +580,7 @@ Defined as: multi method roll(--> Any) multi method roll($n --> Seq) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_roll» on it. @@ -594,7 +594,7 @@ Defined as: multi method pick(--> Any) multi method pick($n --> Seq) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_pick» on it. @@ -659,7 +659,7 @@ Defined as: method first(Mu $matcher?, :$k, :$kv, :$p, :$end) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_first» on it. @@ -671,7 +671,7 @@ Defined as: method unique(:&as, :&with --> Seq:D) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_unique» on it. @@ -683,7 +683,7 @@ Defined as: method repeated(:&as, :&with --> Seq) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_repeated» on it. @@ -695,7 +695,7 @@ Defined as: method squish(:&as, :&with --> Seq) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_squish» on it. @@ -708,7 +708,7 @@ Defined as: method permutations(--> Seq) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_permutations» on it. @@ -720,7 +720,7 @@ Defined as: method categorize(&mapper --> Hash:D) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_categorize» on it. @@ -732,7 +732,7 @@ Defined as: method classify(&mapper -->Hash:D) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_classify» on it. @@ -748,8 +748,7 @@ Defined as: multi method pairs(Any:U: -->List) multi method pairs(Any:D: -->List) -Coerces the invocant to L by applying its L«C<.list>|/routine/list» method -and uses L on it. +Converts the invocant to a L via the C method and returns the result of L on it. Returns an empty L if the invocant is undefined: @@ -767,8 +766,7 @@ Defined as: multi method antipairs(Any:U: -->List) multi method antipairs(Any:D: -->List) -Coerces the invocant to L by applying -its L«C<.list>|/routine/list» method and uses +Converts the invocant to a L via the C method and returns the result of L on it. Returns an empty L if the invocant is undefined: @@ -785,9 +783,8 @@ Defined as: multi method kv(Any:U: -->List) multi method kv(Any:D: -->List) -Coerces the invocant to L by applying -its L«C<.list>|/routine/list» method and uses - L on it. +Invokes C on the invocant and returns the result of +L on it. Returns an empty L if the invocant is undefined: my $a; @@ -941,7 +938,7 @@ Defined as: method combinations(--> Seq) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_combinations» on it. @@ -953,7 +950,7 @@ Defined as: method iterator(--> Iterator) -Coerces the invocant to L by applying its L«C<.list>|/routine/list» method and uses +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/Iterable#method_iterator» on it. my $it = Any.iterator; @@ -966,7 +963,7 @@ Defined as: method grep(Mu $matcher, :$k, :$kv, :$p, :$v --> Seq) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#routine_grep» on it. @@ -1036,7 +1033,7 @@ Defined as: multi method batch(Int:D $batch --> Seq) multi method batch(Int:D :$elems --> Seq) -Coerces the invocant to L by applying +Coerces the invocant to a C by applying its L«C<.list>|/routine/list» method and uses L«C|/type/List#method_batch» on it.