ListToCsv.Key.replace_first
You're seeing just the function
replace_first
, go back to ListToCsv.Key module for more information.
Specs
Returns a new list created by replacing occurrences of from
in subject
with to
. Only the first occurrence is replaced.
Examples
iex> replace_first([:item, :N, :name], :N, 1)
[:item, 1, :name]
iex> replace_first([:item, :N, :name, :N], :N, 2)
[:item, 2, :name, :N]