Module: stdgo.cmp
Overview
Index
Classes
import
class Cmp
Package cmp provides types and functions related to comparing
ordered values.
Cmp function compare
function compare(_x:Dynamic, _y:Dynamic):Int
Compare returns
-1 if x is less than y,
0 if x equals y,
+1 if x is greater than y.
For floating-point types, a NaN is considered less than any non-NaN, a NaN is considered equal to a NaN, and -0.0 is equal to 0.0.
Cmp function less
function less(_x:Dynamic, _y:Dynamic):Bool
Less reports whether x is less than y.
For floating-point types, a NaN is considered less than any non-NaN,
and -0.0 is not less than (is equal to) 0.0.
Typedefs
import
typedef Ordered
typedef Ordered = {
};