ListToCsv.Key.starts_with-question-mark

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

starts_with?(keys, prefix)

View Source

Specs

starts_with?(many(), [t()]) :: boolean()

Returns true if keys starts with the given prefix list; otherwise returns false.

Note that :N can match with integer.

Examples

iex> starts_with?(:name, [:item, :N])
false

iex> starts_with?([:item, :N, :name], [:item, :N])
true

iex> starts_with?([:name], [:item, :N])
false

iex> starts_with?([:item, 1, :name, :N, :first], [:item, :N, :name, :N])
true

iex> starts_with?([:packages, :N, :name], [:item, :N])
false

iex> starts_with?({&(&1 + &2), [[:item, :N, :quantity], :capacity]}, [:item, :N])
true