method SetHash
| 1 | class Any |
| 1.1 | (Any) method SetHash |
| 2 | role Baggy |
| 2.1 | (Baggy) method SetHash |
Documentation for method SetHash assembled from the following types:
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.
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»