SetHash
ErrorsCollection

SetHash

Synthesised documentation from type/Baggy type/Any

From type/Baggy

See Original text in context

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␤»

From type/Any

See Original text in context

method SetHash(--> SetHash:Dis nodal

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