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.
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?([: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