Packages

t

scala.math.Ordering

ExtraImplicits

trait ExtraImplicits extends AnyRef

Source
Ordering.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExtraImplicits
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. 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
  2. implicit def seqOrdering[CC[X] <: collection.Seq[X], 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.

  3. implicit def sortedSetOrdering[CC[X] <: SortedSet[X], T](implicit ord: Ordering[T]): Ordering[CC[T]]