product

@JvmName(name = "productOfInt")
fun Iterable<Int>.product(): Long

Returns the product of all elements, accumulated as a Long.

An empty receiver yields 1. The result wraps on overflow.


@JvmName(name = "productOfLong")
fun Iterable<Long>.product(): Long

Returns the product of all elements.

An empty receiver yields 1. The result wraps on overflow.


@JvmName(name = "productOfDouble")
fun Iterable<Double>.product(): Double

Returns the product of all elements.

An empty receiver yields 1.0.