Enum.intersperse
You're seeing just the function
intersperse
, go back to Enum module for more information.
Specs
Intersperses separator
between each element of the enumeration.
Examples
iex> Enum.intersperse([1, 2, 3], 0)
[1, 0, 2, 0, 3]
iex> Enum.intersperse([1], 0)
[1]
iex> Enum.intersperse([], 0)
[]