enum Comparison with Eq, ToString, SendableSource
case LessThancase EqualTocase GreaterThan


def fromInt32(i: Int32): Comparison Source

Converts an integer to a Comparison value. The return value is: LessThan if i < 0. EqualTo if i == 0. GreaterThan if i > 0.

def toInt(c: Comparison): Int32 Source

Converts a Comparison value to an integer. The return value is: -1 if c is LessThan. 0 if c is EqualTo. +1 if c is GreaterThan.