MultiplicativeSemigroup

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

Value members

Abstract methods

def times(x: A, y: A): A

Concrete methods

def multiplicative: Semigroup[A]
def pow(a: A, n: Int): 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).