YAP6 Operator: Comparisons - Part II

by Adriano Ferreira

Another article of the series "Yet Another Perl 6 Operator"


In the the last article, we've seen some of the usual relational operators in Perl 6 and their enhanced syntax through chaining (which allows expressions like a < b < c).


Another kind of comparison operators are those that, instead of true/false returns, identify the relative order between its operands: before, equal, or after.