ex_ex v0.1.0 ExEx.Enum

TODO

Link to this section Summary

Functions

Returns a list where each item is the result of invoking fun on each corresponding item of enumerable in parallel

Link to this section Types

Link to this type element()
element() :: any()

Link to this section Functions

Link to this function has_key?(enum, key)
Link to this function parallel_map(enumerable, fun)
parallel_map(t(), (element() -> t())) :: list()

Returns a list where each item is the result of invoking fun on each corresponding item of enumerable in parallel.

For maps, the function expects a key-value tuple.

Examples

iex> ExEx.Enum.parallel_map([1, 2, 3], fn(x) -> x * 2 end)
[2, 4, 6]