Ordered

scala.math.Ordered
See theOrdered companion trait
object Ordered

Attributes

Companion
trait
Source
Ordered.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Ordered.type

Members list

Implicits

Implicits

implicit def orderingToOrdered[T](x: T)(implicit ord: Ordering[T]): Ordered[T]

Lens from Ordering[T] to Ordered[T].

Lens from Ordering[T] to Ordered[T].

Type parameters

T

the type of the value to be wrapped as Ordered

Value parameters

ord

the implicit Ordering instance used to perform comparisons

x

the value to be converted to an Ordered instance

Attributes

Source
Ordered.scala