(:Less(-1), :Same(0), :More(1));
multi sub infix:<cmp>(\a, \b --> Order)
cmp
will first try to compare operands as strings (via coercion to Stringy), and, failing that, will try to compare numerically via the <=>
operator or any other type-appropriate comparison operator. See also the documentation for the cmp
operator.
multi sub infix:«<=>»(Int \a, Int \b --> Order)
Specialized form for Int.