List.foldl/3
defmodule List do
def foldl(list, acc, fun)
end
Folds (reduces) the given list from the left with a function. Requires an accumulator.
defmodule List do
def foldl(list, acc, fun)
end
Folds (reduces) the given list from the left with a function. Requires an accumulator.