Skip to content

Commit

Permalink
Fixes issues with type List
Browse files Browse the repository at this point in the history
.list returns list not List so changed that
  • Loading branch information
Moray committed Aug 10, 2018
1 parent 84a36e2 commit b76d527
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions doc/Type/Any.pod6
Expand Up @@ -472,7 +472,7 @@ Defined as:
method Supply(--> Supply:D) is nodal
Coerces the invocant first to L<List> by applying its
Coerces the invocant first to a C<list> by applying its
L«C<.list>|/routine/list» method, and then to L<Supply>.
=head2 method min
Expand Down Expand Up @@ -567,7 +567,7 @@ Defined as:
method flatmap(Any:U: &code --> Seq)
Coerces the invocant to L<List> by applying its
Coerces the invocant to a C<list> by applying its
L«C<.list>|/routine/list» method and uses
L«C<List.flatmap>|/type/List#method_flatmap» on it.
Expand All @@ -580,7 +580,7 @@ Defined as:
multi method roll(--> Any)
multi method roll($n --> Seq)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.roll>|/type/List#routine_roll» on it.
Expand All @@ -594,7 +594,7 @@ Defined as:
multi method pick(--> Any)
multi method pick($n --> Seq)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.pick>|/type/List#routine_pick» on it.
Expand Down Expand Up @@ -659,7 +659,7 @@ Defined as:
method first(Mu $matcher?, :$k, :$kv, :$p, :$end)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.first>|/type/List#routine_first» on it.
Expand All @@ -671,7 +671,7 @@ Defined as:
method unique(:&as, :&with --> Seq:D)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.unique>|/type/List#routine_unique» on it.
Expand All @@ -683,7 +683,7 @@ Defined as:
method repeated(:&as, :&with --> Seq)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.repeated>|/type/List#routine_repeated» on it.
Expand All @@ -695,7 +695,7 @@ Defined as:
method squish(:&as, :&with --> Seq)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.squish>|/type/List#routine_squish» on it.
Expand All @@ -708,7 +708,7 @@ Defined as:
method permutations(--> Seq)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.permutations>|/type/List#routine_permutations» on it.
Expand All @@ -720,7 +720,7 @@ Defined as:
method categorize(&mapper --> Hash:D)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.categorize>|/type/List#routine_categorize» on it.
Expand All @@ -732,7 +732,7 @@ Defined as:
method classify(&mapper -->Hash:D)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.classify>|/type/List#routine_classify» on it.
Expand All @@ -748,8 +748,7 @@ Defined as:
multi method pairs(Any:U: -->List)
multi method pairs(Any:D: -->List)
Coerces the invocant to L<List> by applying its L«C<.list>|/routine/list» method
and uses L<List.pairs|/type/List#routine_pairs> on it.
Converts the invocant to a L<List> via the C<list> method and returns the result of L<List.pairs|/type/List#routine_pairs> on it.
Returns an empty L<List> if the invocant is undefined:
Expand All @@ -767,8 +766,7 @@ Defined as:
multi method antipairs(Any:U: -->List)
multi method antipairs(Any:D: -->List)
Coerces the invocant to L<List> by applying
its L«C<.list>|/routine/list» method and uses
Converts the invocant to a L<List> via the C<list> method and returns the result of
L<List.antipairs|/type/List#routine_antipairs> on it.
Returns an empty L<List> if the invocant is undefined:
Expand All @@ -785,9 +783,8 @@ Defined as:
multi method kv(Any:U: -->List)
multi method kv(Any:D: -->List)
Coerces the invocant to L<List> by applying
its L«C<.list>|/routine/list» method and uses
L<List.kv|/type/List#routine_kv> on it.
Invokes C<list> on the invocant and returns the result of
L<List.kv|/type/List#routine_kv> on it.
Returns an empty L<List> if the invocant is undefined:
my $a;
Expand Down Expand Up @@ -941,7 +938,7 @@ Defined as:
method combinations(--> Seq)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.combinations>|/type/List#routine_combinations» on it.
Expand All @@ -953,7 +950,7 @@ Defined as:
method iterator(--> Iterator)
Coerces the invocant to L<List> by applying its L«C<.list>|/routine/list» method and uses
Coerces the invocant to a C<list> by applying its L«C<.list>|/routine/list» method and uses
L«C<iterator>|/type/Iterable#method_iterator» on it.
my $it = Any.iterator;
Expand All @@ -966,7 +963,7 @@ Defined as:
method grep(Mu $matcher, :$k, :$kv, :$p, :$v --> Seq)
Coerces the invocant to L<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.grep>|/type/List#routine_grep» on it.
Expand Down Expand Up @@ -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<List> by applying
Coerces the invocant to a C<list> by applying
its L«C<.list>|/routine/list» method and uses
L«C<List.batch>|/type/List#method_batch» on it.
Expand Down

0 comments on commit b76d527

Please sign in to comment.