ExtraImplicits
trait ExtraImplicits
Implicits
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