Scala Library
|
|
scala/collection/Traversable.scala
]
class
NumericTraversableOps[A](self : Traversable[A], num : Numeric[A])
extends
AnyRefMethod 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
def
product : A
Scala Library
|
|