Documentation for routine set assembled from the following pages:
Class: SetHash §
From SetHash
(SetHash) method set §
Defined as:
method set(SetHash: \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.
Class: Collation §
From Collation
(Collation) method set §
Defined as:
method set ( Int : = 1, Int : = 1, Int : = 1, Int : = 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.new;say 'a' coll 'z'; # OUTPUT: «Less» .set(:primary(-1));say 'a' coll 'z'; # OUTPUT: «More»
Class: Set §
From Set
(Set) sub set §
sub set(* --> Set)
Creates a Set from the given @args