Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2796 from lukasvalle/master
document antipairs for Setty
  • Loading branch information
JJ committed May 17, 2019
2 parents a69bccb + af5b559 commit a7c4278
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/Type/Setty.pod6
Expand Up @@ -97,6 +97,18 @@ die face is a set element.
If C<*> is passed as C<$count>, the list is infinite.
=head2 method antipairs
Defined as:
multi 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 keys
Defined as:
Expand Down

0 comments on commit a7c4278

Please sign in to comment.