Skip to content

Commit

Permalink
Revising Any.skip and Any.batch
Browse files Browse the repository at this point in the history
In fact, they were done already. I have only added some
clarification. This closes #1195
  • Loading branch information
JJ committed Jun 30, 2018
1 parent aa35ae1 commit 45d68ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/Type/Any.pod6
Expand Up @@ -602,6 +602,11 @@ Defined as:
Creates a L<Seq> from 1-item list's iterator and uses
L«C<Seq.skip>|/type/Seq#method_skip» on it.
You can apply them to classes too, resulting in empty lists or lists that
contain a single class. This is not a real use case, and it is mostly intended
to show the calling syntax. Please note that calling C<skip> without argument is
equivalente to C<skip(1)>.
say Any.skip; # OUTPUT: «()␤»
say Any.skip(5); # OUTPUT: «()␤»
say Any.skip(-1); # OUTPUT: «((Any))␤»
Expand Down Expand Up @@ -1010,7 +1015,7 @@ Defined as:
multi method batch(Int:D $batch --> Seq)
multi method batch(Int:D :$elems --> Seq)
Coerces the C<Any> to a C<List> by applying the C<.list> method and uses
Coerces the object to a C<List> by applying the C<.list> method and uses
L«C<List.batch>|/type/List#method_batch» on it.
=end pod
Expand Down

0 comments on commit 45d68ff

Please sign in to comment.