set
ErrorsCollection

set

Synthesised documentation from type/Collation type/SetHash type/Set

From type/Collation

See Original text in context

method set (
    Int :$primary    = 1,
    Int :$secondary  = 1,
    Int :$tertiary   = 1,
    Int :$quaternary = 1)

Sets if the different levels should be used in ascending or descending order, or if they are going to be ignored (when set to 0).

my $*COLLATION = Collation.new;
say 'a' coll 'z'# OUTPUT: «Less» 
$*COLLATION.set(:primary(-1));
say 'a' coll 'z'# OUTPUT: «More» 

From type/SetHash

See Original text in context

method set(SetHash:D: \to-set --> Nil)

When given single key, set adds it to the SetHash. When given a List, Array, Seq, or any other type that does the Iterator Role, set adds each element of the Iterator as key to the SetHash.

Note: since version 2020.02.

From type/Set

See Original text in context

sub set(*@args --> Set)

Creates a Set from the given @args