Data.Ord
lib/Data/Ord.gob
No module comment.
class Ord a : Eq a
fun lt : [Ord a] fun(a, a) -> Bool
fun lte : [Ord a] fun(a, a) -> Bool -- has a default
fun gt : [Ord a] fun(a, a) -> Bool -- has a default
fun gte : [Ord a] fun(a, a) -> Bool -- has a default
infix Comparison (<) = Ord.lt -- left-associative
infix Comparison (<=) = Ord.lte -- left-associative
infix Comparison (>) = Ord.gt -- left-associative
infix Comparison (>=) = Ord.gte -- left-associative
fun min : [Ord a] fun(a, a) -> a
The lesser and the greater of two values. When neither is less than the
other, min answers x and max answers y, so (min(x, y), max(x, y))
is (x, y) sorted stably: the two never answer the same one of two values
that are equal but distinguishable.
fun max : [Ord a] fun(a, a) -> a