scala.collection.Traversable

class NumericTraversableOps

[source: scala/collection/Traversable.scala]

class NumericTraversableOps[A](self : Traversable[A], num : Numeric[A])
extends AnyRef
A wrapper class which adds `sum` and `product` methods to iterables of an element type that is `Numeric`.
Method Summary
def product : A
Returns the product of all elements of the wrapped iterable `self` with respect to the numeric operations in `num`
def sum : A
Returns the sum of all elements of the wrapped iterable `self` with respect to the numeric operations in `num`
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def sum : A
Returns the sum of all elements of the wrapped iterable `self` with respect to the numeric operations in `num`

def product : A
Returns the product of all elements of the wrapped iterable `self` with respect to the numeric operations in `num`