Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2846 from lukasvalle/master
Make pairup doc more consistent.
  • Loading branch information
JJ committed Jun 10, 2019
2 parents 263f435 + 99c009a commit 54443e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/Type/Any.pod6
Expand Up @@ -339,9 +339,14 @@ Interprets the invocant as a list, and returns the last index of that list.
Defined as:
multi method pairup(Any:U: --> Seq)
multi method pairup(Any:U:)
multi method pairup(Any:D:)
Returns an
empty L<Seq|/type/Seq> if the invocant is a type object
Range.pairup.say; # OUTPUT: «()␤»
Interprets the invocant as a list, and constructs a list of
L<pairs|/type/Pair> from it, in the same way that assignment to a
L<Hash|/type/Hash> does. That is, it takes two consecutive elements and
Expand Down

0 comments on commit 54443e8

Please sign in to comment.