Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make it more consistent to current implementation and other parts of …
…Any doc (antipairs).
  • Loading branch information
lukasvalle committed Jun 10, 2019
1 parent 9c1d205 commit 99c009a
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 99c009a

Please sign in to comment.