A.Enum.reduce

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

Specs

reduce(t(val), (val, val -> val)) :: val when val: value()

Invokes fun for each element in the enumerable with the accumulator.

Mirrors Enum.reduce/2 with higher performance for Aja structures.

Link to this function

reduce(enumerable, acc, fun)

View Source

Specs

reduce(t(val), acc, (val, acc -> acc)) :: acc when val: value(), acc: term()

Invokes fun for each element in the enumerable with the accumulator.

Mirrors Enum.reduce/3 with higher performance for Aja structures.