In Any§
See primary documentation in context for method BagHash.
method BagHash(--> BagHash:D) is nodal
Coerces the invocant to BagHash
, whereby Positional
s are treated as lists of values.
In MixHash§
See primary documentation in context for method BagHash.
method BagHash (--> BagHash:D)
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.
In Mix§
See primary documentation in context for method BagHash.
method BagHash (--> BagHash:D)
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.
In role Setty§
See primary documentation in context for method BagHash.
method BagHash(Setty:D: --> BagHash:D)
Returns a BagHash
containing the elements of the invocant.
my BagHash $b = Set.new(1, 2, 3).BagHash; say $b; # OUTPUT: «BagHash(1 2 3)»