Skip to content

Commit 336a3c0

Browse files
author
Jan-Olof Hendig
committed
Added docs for Setty.Mix
1 parent b0339f3 commit 336a3c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/Type/Setty.pod6

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,17 @@ Returns C<True> if the invocant contains at least one element.
165165
my $s2 = $s1 ∩ Set.new(4, 5); # set intersection operator
166166
say $s2.Bool; # False
167167
168+
=head2 method Mix
169+
170+
Defined as:
171+
172+
method Mix(Setty:D:) returns Mix:D
173+
174+
Returns a L<Mix|/type/Mix> containing the elements of the invocant.
175+
176+
my Mix $b = Set.new(1, 2, 3).Mix;
177+
say $b; # mix(3, 1, 2)
178+
168179
=head1 See Also
169180
170181
L<Sets, Bags, and Mixes|/language/setbagmix>

0 commit comments

Comments
 (0)