OrdOps

zio.prelude.OrdSyntax.OrdOps
implicit class OrdOps[A](val l: A)

Provides infix syntax for comparing two values with a total ordering.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def =?=[A1 >: A](r: A1)(implicit ord: Ord[A1]): Ordering

Returns the result of comparing this value with the specified value.

Returns the result of comparing this value with the specified value.

Attributes

def max[A1 >: A](r: A1)(implicit ord: Ord[A1]): A1

Returns the maximum of this value and the specified value.

Returns the maximum of this value and the specified value.

Attributes

def min[A1 >: A](r: A1)(implicit ord: Ord[A1]): A1

Returns the minimum of this value and the specified value.

Returns the minimum of this value and the specified value.

Attributes

Concrete fields

val l: A