Documentation for infix
coll assembled from the following types:
multi sub infix:<coll>(Str \a, Str \b --> Order)multi sub infix:<coll>(Cool \a, Cool \b --> Order)multi sub infix:<coll>(Pair \a, Pair \b)multi sub infix:<coll>(Str \a, Str \b)
coll is a sorting operator that takes pairs of
Pairs and returns an
Order that uses the
$*COLLATION order. The default behavior disregards diacritic marks and capitalization, for instance.
say "b" cmp "à"; # OUTPUT: «Less␤»say "b" coll "à"; # OUTPUT: «More␤»
In the first case, lexicographic or codepoint order is taken into account. In the second, which uses
coll, the diacritic is not considered and sorting happens according to intuitive order.