Enum.sum/1
defmodule Enum do
def sum(enumerable)
end
Returns the sum of all elements of enumerable
.
Raises ArithmeticError
if enumerable
contains a non-numeric value.
defmodule Enum do
def sum(enumerable)
end
Returns the sum of all elements of enumerable
.
Raises ArithmeticError
if enumerable
contains a non-numeric value.