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