pub fn reverse(op: CompareOperator) CompareOperator op: CompareOperator1634
1635
1636
1637
1638
1639
1640
1641
1642
1643 pub fn reverse(op: CompareOperator) CompareOperator {
return switch (op) {
.lt => .gt,
.lte => .gte,
.gt => .lt,
.gte => .lte,
.eq => .eq,
.neq => .neq,
};
}
Reverse the direction of the comparison. Use when swapping the left and right hand operands.