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 <= y

x >= y

result

note

true

true

0.0

(corresponds to x = y)

false

false

NaN

(x and y cannot be compared)

true

false

-1.0

(corresponds to x < y)

false

true

1.0

(corresponds to x > y)

Attributes

Companion
object
Source
PartialOrder.scala
Graph
Supertypes
trait Eq[A]
trait Serializable
class Any
Known subtypes
class ListPartialOrder[A]
class SeqPartialOrder[A]
class SetPartialOrder[A]
trait Order[A]
class BigIntOrder
class BooleanOrder
class ByteOrder
class CharOrder
class DoubleOrder
class FloatOrder
class IntOrder
class LazyListOrder[A]
class ListOrder[A]
class LongOrder
class OptionOrder[A]
class QueueOrder[A]
class SeqOrder[A]
class ShortOrder
class SortedSetOrder[A]
class SortedSetOrder[A]
class StreamOrder[A]
class StringOrder
class SymbolOrder
class UnitOrder
class VectorOrder[A]
object O
object O
Show all
Self type

Members list

Value members

Abstract methods

def partialCompare(x: A, y: A): Double
Implicitly added by catsKernelPartialOrderForArraySeq

Result of comparing x with y.

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.

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 catsKernelPartialOrderForLazyList

Result of comparing x with y.

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.

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 catsKernelPartialOrderForOption

Result of comparing x with y.

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.

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.

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.

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 catsKernelPartialOrderForStream

Result of comparing x with y.

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 catsKernelPartialOrderForTuple1

Result of comparing x with y.

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 catsKernelPartialOrderForVector

Result of comparing x with y.

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.

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
Implicitly added by catsKernelPartialOrderForArraySeq

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 catsKernelPartialOrderForLazyList

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
Implicitly added by catsKernelPartialOrderForOption

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
Implicitly added by catsKernelPartialOrderForStream

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 catsKernelPartialOrderForTuple1

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 catsKernelPartialOrderForVector

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
Implicitly added by catsKernelPartialOrderForArraySeq

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 catsKernelPartialOrderForLazyList

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
Implicitly added by catsKernelPartialOrderForOption

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
Implicitly added by catsKernelPartialOrderForStream

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 catsKernelPartialOrderForTuple1

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 catsKernelPartialOrderForVector

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
Implicitly added by catsKernelPartialOrderForArraySeq

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 catsKernelPartialOrderForLazyList

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
Implicitly added by catsKernelPartialOrderForOption

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
Implicitly added by catsKernelPartialOrderForStream

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 catsKernelPartialOrderForTuple1

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 catsKernelPartialOrderForVector

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
Implicitly added by catsKernelPartialOrderForArraySeq

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 catsKernelPartialOrderForLazyList

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
Implicitly added by catsKernelPartialOrderForOption

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
Implicitly added by catsKernelPartialOrderForStream

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 catsKernelPartialOrderForTuple1

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 catsKernelPartialOrderForVector

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
Implicitly added by catsKernelPartialOrderForArraySeq

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 catsKernelPartialOrderForLazyList

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
Implicitly added by catsKernelPartialOrderForOption

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
Implicitly added by catsKernelPartialOrderForStream

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 catsKernelPartialOrderForTuple1

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 catsKernelPartialOrderForVector

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
Implicitly added by catsKernelPartialOrderForArraySeq

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double.

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.

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 catsKernelPartialOrderForLazyList

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double.

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.

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 catsKernelPartialOrderForOption

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double.

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.

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.

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.

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 catsKernelPartialOrderForStream

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double.

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 catsKernelPartialOrderForTuple1

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double.

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 catsKernelPartialOrderForVector

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double.

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.

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]
Implicitly added by catsKernelPartialOrderForArraySeq

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 catsKernelPartialOrderForLazyList

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]
Implicitly added by catsKernelPartialOrderForOption

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]
Implicitly added by catsKernelPartialOrderForStream

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 catsKernelPartialOrderForTuple1

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 catsKernelPartialOrderForVector

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]
Implicitly added by catsKernelPartialOrderForArraySeq

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 catsKernelPartialOrderForLazyList

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]
Implicitly added by catsKernelPartialOrderForOption

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]
Implicitly added by catsKernelPartialOrderForStream

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 catsKernelPartialOrderForTuple1

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 catsKernelPartialOrderForVector

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]
Implicitly added by catsKernelPartialOrderForArraySeq

Result of comparing x with y.

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.

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 catsKernelPartialOrderForLazyList

Result of comparing x with y.

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.

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 catsKernelPartialOrderForOption

Result of comparing x with y.

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.

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.

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.

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 catsKernelPartialOrderForStream

Result of comparing x with y.

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 catsKernelPartialOrderForTuple1

Result of comparing x with y.

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 catsKernelPartialOrderForVector

Result of comparing x with y.

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.

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
Implicitly added by catsKernelPartialOrderForArraySeq

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 catsKernelPartialOrderForLazyList

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
Implicitly added by catsKernelPartialOrderForOption

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
Implicitly added by catsKernelPartialOrderForStream

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 catsKernelPartialOrderForTuple1

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 catsKernelPartialOrderForVector

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