Lines Matching defs:reduce
136 def reduce(_list, {:halt, acc}, _fun), do: {:halted, acc} function
137 def reduce(list, {:suspend, acc}, fun), do: {:suspended, acc, &reduce(list, &1, fun)} function
138 def reduce([], {:cont, acc}, _fun), do: {:done, acc} function
139 def reduce([head | tail], {:cont, acc}, fun), do: reduce(tail, fun.(head, acc), fun) function
143 def reduce(enumerable, acc, fun) function
2335 def reduce(enumerable, fun) function
2337 def reduce([h | t], fun) do function
2341 def reduce([], _fun) do function
2345 def reduce(enumerable, fun) do function
2395 def reduce(enumerable, acc, fun) when is_list(enumerable) do function
2399 def reduce(first..last//step, acc, fun) do function
2403 def reduce(%_{} = enumerable, acc, fun) do function
2407 def reduce(%{} = enumerable, acc, fun) do function
2411 def reduce(enumerable, acc, fun) do function
4472 def reduce(_list, {:halt, acc}, _fun), do: {:halted, acc} function
4473 def reduce(list, {:suspend, acc}, fun), do: {:suspended, acc, &reduce(list, &1, fun)} function
4474 def reduce([], {:cont, acc}, _fun), do: {:done, acc} function
4475 def reduce([head | tail], {:cont, acc}, fun), do: reduce(tail, fun.(head, acc), fun) function
4507 def reduce(map, acc, fun) do function
4517 def reduce(function, acc, fun) when is_function(function, 2), do: function.(acc, fun) function
4519 def reduce(function, _acc, _fun) do function