Order
Trait for types that have a total order, and its functions.
Trait for types that have a total order.
Sub-traits
Instances
- Primitives
Unit, Bool, Char, Float32, Float64, BigDecimal, Int8, Int16, Int32, Int64, BigInt, String, Vector[a]and tuples of 2 to 15 elements- Non-primitives
Boxed, Chain[a], CopyOption, Down[a], Duration, Flag, Identity[a], List[a], Map[k, v], MoveOption, MultiMap[k, v], Nec[a], Nel[a], Option[t], PredSym, RelSym, Result[e, t], RowVar, Set[a], Severity, Size, Style, Validation[e, t], VarSym
Signatures
def compare(x: a, y: a): Comparison with Order[a]§ SourceReturns Comparison.LessThan if x < y, Equal if x == y or Comparison.GreaterThan if x>y`.
Trait Definitions
Module Definitions
def maxBy(cmp: a -> (a -> Comparison), x: a, y: a): a§ SourceReturns the maximum of x and y according to the given comparator cmp.
def minBy(cmp: a -> (a -> Comparison), x: a, y: a): a§ SourceReturns the minimum of x and y according to the given comparator cmp.