We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e4758a commit a1bd28fCopy full SHA for a1bd28f
doc/Type/Setty.pod6
@@ -11,6 +11,22 @@ See L<Set> and L<SetHash>.
11
12
=head1 Methods
13
14
+=head2 method new-from-pairs
15
+
16
+Defined as:
17
18
+ method new-from-pairs(*@pairs) returns Setty:D
19
20
+Constructs a Setty object from a list of L«C<Pair> objects|/type/Pair»
21
+given as positional arguments:
22
23
+ say Set.new-from-pairs: 'butter' => 0.22, 'salt' => 0, 'sugar' => 0.02;
24
+ # OUTPUT:
25
+ # set(butter, sugar)
26
27
+B<Note:> be sure you aren't accidentally passing the Pairs as positional arguments;
28
+the quotes around the keys in the above example are significant.
29
30
=head2 method grab
31
32
method grab($count = 1)
0 commit comments