PartialOrder

cats.kernel.PartialOrder
See thePartialOrder companion object
trait PartialOrder[A] extends Eq[A]

The PartialOrder type class is used to define a partial ordering on some type A.

A partial order is defined by a relation <=, which obeys the following laws:

  • x <= x (reflexivity)
  • if x <= y and y <= x, then x = y (anti-symmetry)
  • if x <= y and y <= z, then x <= z (transitivity)

To compute both <= and >= at the same time, we use a Double number to encode the result of the comparisons x <= y and x >= y. The truth table is defined as follows:

x <= yx >= yresultnote
truetrue0.0(corresponds to x = y)
falsefalseNaN(x and y cannot be compared)
truefalse-1.0(corresponds to x < y)
falsetrue1.0(corresponds to x > y)

Attributes

Companion:
object
Source:
PartialOrder.scala
Graph
Supertypes
trait Eq[A]
class Any
Known subtypes
Self type

Members list

Concise view

Value members

Abstract methods

def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelPartialOrderForList

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelPartialOrderForQueue

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelPartialOrderForSeq

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala
def partialCompare(x: A, y: A): Double

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is:

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

Attributes

Source:
PartialOrder.scala

Concrete methods

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

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForList

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForQueue

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForSeq

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def eqv(x: A, y: A): Boolean

Returns true if x = y, false otherwise.

Returns true if x = y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForList

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForQueue

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForSeq

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gt(x: A, y: A): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForList

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForQueue

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForSeq

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def gteqv(x: A, y: A): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForList

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForQueue

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForSeq

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lt(x: A, y: A): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForList

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForQueue

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForSeq

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala
def lteqv(x: A, y: A): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala
Implicitly added by catsKernelPartialOrderForList

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.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala
Implicitly added by catsKernelPartialOrderForQueue

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.

Attributes

Source:
PartialOrder.scala
Implicitly added by catsKernelPartialOrderForSeq

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.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala

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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelPartialOrderForList

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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelPartialOrderForQueue

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.

Attributes

Source:
PartialOrder.scala
def pmax(x: A, y: A): Option[A]
Implicitly added by catsKernelPartialOrderForSeq

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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelPartialOrderForList

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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelPartialOrderForQueue

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.

Attributes

Source:
PartialOrder.scala
def pmin(x: A, y: A): Option[A]
Implicitly added by catsKernelPartialOrderForSeq

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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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.

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelPartialOrderForList

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

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelPartialOrderForQueue

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

Attributes

Source:
PartialOrder.scala
def tryCompare(x: A, y: A): Option[Int]
Implicitly added by catsKernelPartialOrderForSeq

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

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala
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

Attributes

Source:
PartialOrder.scala

Inherited methods

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

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForList

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForQueue

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelPartialOrderForSeq

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Attributes

Inherited from:
Eq
Source:
Eq.scala