ExtraImplicits (original) (raw)

scala.math.Numeric.ExtraImplicits

Members list

Implicits

Implicits

These implicits create conversions from a value for which an implicit Numeric exists to the inner class which creates infix operations.

These implicits create conversions from a value for which an implicit Numeric exists to the inner class which creates infix operations. Once imported, you can write methods as follows:

def plus[T: Numeric](x: T, y: T) = x + y

Attributes

Source

Numeric.scala

In this article