ListToCsv.Key.replace_first
You're seeing just the function
replace_first
, go back to ListToCsv.Key module for more information.
Returns a new list created by replacing occurrences of pattern
in subject
with replacement
. 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]