Comparison

0.40.0

Definitions

def fromInt32 ( i : Int32 ) : Comparison \ Pure

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 \ Pure

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.