Comparison

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

Instances

instance Eq[Comparison]Source
instance Sendable[Comparison]Source
instance ToString[Comparison]Source

Definitions

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 toInt32(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.