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