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 218b9f4 commit 256d21eCopy full SHA for 256d21e
doc/Type/Setty.pod6
@@ -211,6 +211,11 @@ Returns a L<Bag|/type/Bag> containing the elements of the invocant.
211
my Bag $b = Set.new(1, 2, 3).Bag;
212
say $b; # OUTPUT: «bag(3, 1, 2)»
213
214
+The quantity of the elements in this created bag will be set to one:
215
+
216
+ say (1,2,3).Bag{1}; # OUTPUT: «1»
217
218
219
=head2 method BagHash
220
221
Defined as:
@@ -247,6 +252,10 @@ Returns a L<Mix|/type/Mix> containing the elements of the invocant.
247
252
my Mix $b = Set.new(1, 2, 3).Mix;
248
253
say $b; # OUTPUT: «mix(3, 1, 2)»
249
254
255
+The elements of the returned C<Mix> will have weights equal to 1:
256
257
+ say (1,2,3).Mix{3}; # OUTPUT: «1»
258
250
259
=head2 method MixHash
251
260
261
0 commit comments