Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
document antipairs for Setty
  • Loading branch information
lukasvalle committed May 17, 2019
1 parent 95892c1 commit 5ddf5a7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/Type/Setty.pod6
Expand Up @@ -108,6 +108,18 @@ Returns a L<Seq|/type/Seq> of all elements of the set.
my $s = Set.new(1, 2, 3);
say $s.keys; # OUTPUT: «(3 1 2)␤»
=head2 method antipairs
Defined as:
method antipairs(Setty:D: --> Seq:D)
Returns all elements in the set and C<True> as a L<Seq|/type/Seq> of L<Pairs|/type/Pair>,
where the element itself is the value, i.e. the opposite of method C<pairs>.
my $s = Set.new(1, 2, 3, 1);
say $s.antipairs.sort; # OUTPUT: «(True => 1 True => 2 True => 3)␤»
=head2 method values
Defined as:
Expand Down

0 comments on commit 5ddf5a7

Please sign in to comment.