Implicits
An object containing implicits which are not in the default scope.
- Source
- Ordering.scala
Implicits
Inherited implicits
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
- Inherited from
- ExtraImplicits
- Source
- Ordering.scala
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.
- Inherited from
- ExtraImplicits
- Source
- Ordering.scala
implicit def sortedSetOrdering[CC <: ([X] =>> SortedSet[X]), T](implicit ord: Ordering[T]): Ordering[CC[T]]
- Inherited from
- ExtraImplicits
- Source
- Ordering.scala