Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for List.antipairs
  • Loading branch information
Jan-Olof Hendig committed Aug 6, 2016
1 parent 63b121d commit eb847e3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/Type/List.pod6
Expand Up @@ -155,6 +155,21 @@ values.
<a b c>.pairs # (0 => 'a', 1 => 'b', 2 => 'c').Seq
=head2 routine antipairs
Defined as:
multi method antipairs(List:D:) returns Seq:D
Usage:
LIST.antipairs
Returns a L<Seq|/type/Seq> of pairs, with the values as keys and the indexes as
values, i.e. the direct opposite to L<pairs|/type/List#routine_pairs>.
say <a b c>.antipairs # (a => 0 b => 1 c => 2)
=head2 routine join
Defined as:
Expand Down

0 comments on commit eb847e3

Please sign in to comment.