A.Enum.product

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

Specs

product(t(num)) :: num when num: number()

Returns the product of all elements in the enumerable.

Mirrors Enum.product/1 from Elixir 1.12.

Raises ArithmeticError if enumerable contains a non-numeric value.

Examples

iex> 1..5 |> A.Enum.product()
120
iex> [] |> A.Enum.product()
1