method SetHash
Documentation for method SetHash
assembled from the following types:
role Baggy
From Baggy
(Baggy) method SetHash
Defined as:
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»
class Any
From Any
(Any) method SetHash
Defined as:
method SetHash(--> SetHash) is nodal
Coerces the invocant to SetHash, whereby Positionals are treated as lists of values.