Documentation for method SetHash
assembled from the following pages:
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.