Order
0.40.0
Definitions
def
maxBy
[a]
(
cmp :
a -> (a -> Comparison)
x :
a
y :
a
)
: a
\ Pure
Returns the maximum of x and y according to the given comparator cmp.
def
minBy
[a]
(
cmp :
a -> (a -> Comparison)
x :
a
y :
a
)
: a
\ Pure
Returns the minimum of x and y according to the given comparator cmp.
def
thenCompare
(
c1 :
Comparison
c2 :
Lazy[Comparison]
)
: Comparison
\ Pure
Lazily combines two comparisons.
If c1 is either Comparison.LessThan or Comparison.GreaterThan then c2 is never evaluated.