Documentation for infix leg
assembled from the following pages:
Language documentation: Operators §
From Operators
(Operators) infix leg §
multi sub infix:<leg>(Any, Any)multi sub infix:<leg>(Str, Str)
String three-way comparator. Short for less, equal or greater?.
Coerces both arguments to Str and then does a lexicographic comparison.
say 'a' leg 'b'; # OUTPUT: «Less» say 'a' leg 'a'; # OUTPUT: «Same» say 'b' leg 'a'; # OUTPUT: «More»