In Any§
See primary documentation in context for method SetHash
method SetHash(--> SetHash) is nodal
Coerces the invocant to SetHash, whereby Positionals are treated as lists of values.
In role Baggy§
See primary documentation in context for method SetHash
method SetHash(--> SetHash)
Returns a SetHash whose elements are the keys of the invocant.
my = (eggs => 2, bacon => 3).BagHash;my = .SetHash;say .^name; # OUTPUT: «SetHash»say .elems; # OUTPUT: «2»