Packages

t

scala.math.Numeric

ExtraImplicits

trait ExtraImplicits extends AnyRef

Source
Numeric.scala
Linear Supertypes
Known Subclasses
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. All

Value Members

  1. implicit def infixNumericOps[T](x: T)(implicit num: Numeric[T]): Ops

    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