Implicits

scala.math.Ordering$.Implicits$
object Implicits extends ExtraImplicits

An object containing implicits which are not in the default scope.

Attributes

Source
Ordering.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Implicits.type

Members list

Implicits

Inherited implicits

implicit def infixOrderingOps[T](x: T)(implicit ord: Ordering[T]): OrderingOps

This implicit creates a conversion from any value for which an implicit Ordering exists to the class which creates infix operations.

This implicit creates a conversion from any value for which an implicit Ordering exists to the class which creates infix operations. With it imported, you can write methods as follows:

def lessThan[T: Ordering](x: T, y: T) = x < y

Attributes

Inherited from:
ExtraImplicits
Source
Ordering.scala
implicit def seqOrdering[CC <: (Seq), T](implicit ord: Ordering[T]): Ordering[CC[T]]

Not in the standard scope due to the potential for divergence: For instance implicitly[Ordering[Any]] diverges in its presence.

Not in the standard scope due to the potential for divergence: For instance implicitly[Ordering[Any]] diverges in its presence.

Attributes

Inherited from:
ExtraImplicits
Source
Ordering.scala
implicit def sortedSetOrdering[CC <: (SortedSet), T](implicit ord: Ordering[T]): Ordering[CC[T]]

Attributes

Inherited from:
ExtraImplicits
Source
Ordering.scala