method SetHash

Documentation for method SetHash assembled from the following types:

class Any

From Any

(Any) method SetHash

Defined as:

method SetHash(--> SetHash:Dis 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: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␤»