product

trait Collection[A] {
  def product: A
}

product computes the product of the elements of this collection.

On empty collections this function returns the identity element for the A type’s product operation.