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 8929182 commit ad4e2d7Copy full SHA for ad4e2d7
doc/Type/Baggy.pod
@@ -56,7 +56,17 @@ their individual weights into account as opposed to L<kxxv|#method kxxv>.
56
57
=head2 method values
58
59
-=comment TODO
+Defined as:
60
+
61
+ method values(Baggy:D:) returns List:D
62
63
+Returns a list of all values, i.e. weights, in the C<Baggy> object.
64
65
+ my $breakfast = bag <eggs spam spam spam>;
66
+ say $breakfast.values.sort; # (1 3)
67
68
+ my $n = ("a" => 5, "b" => 2, "a" => 1).BagHash;
69
+ say $n.values.sort; # (2 6)
70
71
=head2 method kv
72
0 commit comments