Order

trait Order[@specialized A] extends PartialOrder[A]

The Order type class is used to define a total ordering on some type A. An order is defined by a relation <=, which obeys the following laws:

The Order type class is used to define a total ordering on some type A. An order is defined by a relation <=, which obeys the following laws:

  • either x <= y or y <= x (totality)
  • if x <= y and y <= x, then x == y (antisymmetry)
  • if x <= y and y <= z, then x <= z (transitivity)

The truth table for compare is defined as follows:

x <= y x >= y Int true true = 0 (corresponds to x == y) true false < 0 (corresponds to x < y) false true > 0 (corresponds to x > y)

By the totality law, x <= y and y <= x cannot be both false.

Companion
object
trait PartialOrder[A]
trait Eq[A]
trait Serializable
class Any

Value members

Abstract methods

def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForOption

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForList

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForVector

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForQueue

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForSortedSet

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForFunction0

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForLazyList

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForArraySeq

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForTuple1

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForStream

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int
Implicitly added by catsKernelOrderForSeq

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
def compare(x: A, y: A): Int

Result of comparing x with y. Returns an Int whose sign is:

Result of comparing x with y. Returns an Int whose sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y

Concrete methods

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForOption

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForList

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForVector

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForQueue

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForSortedSet

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForFunction0

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForLazyList

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForArraySeq

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForTuple1

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForStream

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison
Implicitly added by catsKernelOrderForSeq

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

def comparison(x: A, y: A): Comparison

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

override def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Definition Classes
override def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Definition Classes
override def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Definition Classes
override def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Definition Classes
override def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Definition Classes
def max(x: A, y: A): A
Implicitly added by catsKernelOrderForOption

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForList

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForVector

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForQueue

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForSortedSet

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForFunction0

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForLazyList

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForArraySeq

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForTuple1

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForStream

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A
Implicitly added by catsKernelOrderForSeq

If x > y, return x, else return y.

If x > y, return x, else return y.

def max(x: A, y: A): A

If x > y, return x, else return y.

If x > y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForOption

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForList

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForVector

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForQueue

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForSortedSet

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForFunction0

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForLazyList

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForArraySeq

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForTuple1

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForStream

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A
Implicitly added by catsKernelOrderForSeq

If x < y, return x, else return y.

If x < y, return x, else return y.

def min(x: A, y: A): A

If x < y, return x, else return y.

If x < y, return x, else return y.

override def neqv(x: A, y: A): Boolean

Returns true if x != y, false otherwise.

Returns true if x != y, false otherwise.

Note: this default implementation provided by Order is the same as the one defined in Eq, but for purposes of binary compatibility, the override in Order has not yet been removed. See this discussion.

Definition Classes
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForOption
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForList
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForVector
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForQueue
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForSortedSet
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForFunction0
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForLazyList
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForArraySeq
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForTuple1
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForStream
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelOrderForSeq
def partialCompare(x: A, y: A): Double
def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForOption

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForList

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForVector

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForQueue

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForSortedSet

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForFunction0

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForLazyList

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForArraySeq

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForTuple1

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForStream

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]
Implicitly added by catsKernelOrderForSeq

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

def toOrdering: Ordering[A]

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

Inherited methods

def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForOption

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForList

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForVector

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForQueue

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForSortedSet

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForFunction0

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForLazyList

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForArraySeq

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForTuple1

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForStream

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]
Implicitly added by catsKernelOrderForSeq

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def partialComparison(x: A, y: A): Option[Comparison]

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForOption

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForList

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForVector

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForQueue

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForSortedSet

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForFunction0

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForLazyList

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForArraySeq

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForTuple1

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForStream

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForSeq

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmax(x: A, y: A): Option[A]

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForOption

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForList

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForVector

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForQueue

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForSortedSet

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForFunction0

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForLazyList

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForArraySeq

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForTuple1

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForStream

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelOrderForSeq

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def pmin(x: A, y: A): Option[A]

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForOption

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForList

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForVector

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForQueue

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForSortedSet

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForFunction0

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForLazyList

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForArraySeq

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForTuple1

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForStream

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelOrderForSeq

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
def tryCompare(x: A, y: A): Option[Int]

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder