See Original text in context
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»
See Original text in context
method SetHash(--> SetHash) is nodal
Coerces the invocant to SetHash, whereby Positional are treated as lists of values.