method Bag
| 1 | class Any | 
| 1.1 | (Any) method Bag | 
| 2 | role Setty | 
| 2.1 | (Setty) method Bag | 
| 3 | class MixHash | 
| 3.1 | (MixHash) method Bag | 
| 4 | class Mix | 
| 4.1 | (Mix) method Bag | 
Documentation for method Bag assembled from the following types:
class Any
From Any
(Any) method Bag
Defined as:
method Bag(--> Bag) is nodal
Coerces the invocant to Bag, whereby Positionals are treated as lists of values.
role Setty
From Setty
(Setty) method Bag
Defined as:
method Bag(Setty: --> Bag)
Returns a Bag containing the elements of the invocant.
my Bag = Set.new(1, 2, 3).Bag;say ; # OUTPUT: «bag(3, 1, 2)»
class MixHash
From MixHash
(MixHash) method Bag
Defined as:
method Bag (--> Bag)
Coerces the MixHash to a Bag. The weights are converted to Int, which means the number of keys in the resulting Bag can be fewer than in the original MixHash, if any of the weights are negative or truncate to zero.
class Mix
From Mix
(Mix) method Bag
Defined as:
method Bag (--> Bag)
Coerces the Mix to a Bag. The weights are convert to Int, which means the number of keys in the resulting Bag can be fewer than in the original Mix, if any of the weights are negative or truncate to zero.