In Any§

See primary documentation in context for method SetHash

method SetHash(--> SetHash:Dis nodal

Coerces the invocant to SetHash, whereby Positionals are treated as lists of values.

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 => 2bacon => 3).BagHash;
my $sh = $breakfast.SetHash;
say $sh.^name;                            # OUTPUT: «SetHash␤» 
say $sh.elems;                            # OUTPUT: «2␤»