ListToCsv.Key.replace_first

You're seeing just the function replace_first, go back to ListToCsv.Key module for more information.
Link to this function

replace_first(subject, from, to)

View Source

Specs

replace_first([t()], t(), t()) :: [t()]

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, 1)
:item

iex> replace_first([:item], :N, 1)
[:item]

iex> replace_first([:item, :N, :name], :N, 1)
[:item, 1, :name]

iex> replace_first([:item, :N, :name, :N], :N, 2)
[:item, 2, :name, :N]

iex> replace_first({&(&1 + &2), [[:item, :N, :quantity], :capacity]}, :N, 3)
{&(&1 + &2), [[:item, 3, :quantity], :capacity]}