Enum.product

You're seeing just the function product, go back to Enum module for more information.
Link to this function

product(enumerable)

View Source (since 1.12.0)

Specs

product(t()) :: number()

Returns the product of all elements.

Raises ArithmeticError if enumerable contains a non-numeric value.

Examples

iex> Enum.product([])
1
iex> Enum.product([2, 3, 4])
24
iex> Enum.product([2.0, 3.0, 4.0])
24.0