MultiplicativeCommutativeSemigroup

trait MultiplicativeCommutativeSemigroup[@specialized(Int, Long, Float, Double) A] extends MultiplicativeSemigroup[A]
Companion
object
trait Serializable
class Any

Value members

Concrete methods

override def multiplicative: CommutativeSemigroup[A]
Definition Classes

Inherited methods

def pow(a: A, n: Int): A
def times(x: A, y: A): A
def tryProduct(as: IterableOnce[A]): Option[A]

Given a sequence of as, combine them and return the total.

Given a sequence of as, combine them and return the total.

If the sequence is empty, returns None. Otherwise, returns Some(total).

Inherited from
MultiplicativeSemigroup