ListToCsv.Option.starts_with-question-mark

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

starts_with?(keys, prefix)

View Source

Specs

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?({"name", :name}, [:item, :N])
false

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

iex> starts_with?({"item#.name", [:item, :N, :name]}, [:item, :N])
true

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

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

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

iex> starts_with?({"item1.name#.first", [:item, 1, :name, :N, :first]}, [:item, :N, :name, :N])
true

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

iex> starts_with?({"package#.name", [:packages, :N, :name]}, [:item, :N])
false