Implicits

scala.math.Numeric.Implicits
object Implicits extends ExtraImplicits

Attributes

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

Members list

Implicits

Inherited implicits

implicit def infixNumericOps[T](x: T)(implicit num: Numeric[T]): Numeric[T]#NumericOps

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

Inherited from:
ExtraImplicits
Source
Numeric.scala