Enum.map_join
You're seeing just the function
map_join
, go back to Enum module for more information.
Specs
map_join(t(), String.t(), (element() -> String.Chars.t())) :: String.t()
Maps and joins the given enumerable
in one pass.
If joiner
is not passed at all, it defaults to an empty string.
All elements returned from invoking the mapper
must be convertible to
a string, otherwise an error is raised.
Examples
iex> Enum.map_join([1, 2, 3], &(&1 * 2))
"246"
iex> Enum.map_join([1, 2, 3], " = ", &(&1 * 2))
"2 = 4 = 6"