Keyword.delete_first
You're seeing just the function
delete_first
, go back to Keyword module for more information.
Specs
Deletes the first entry in the keyword list for a specific key
.
If the key
does not exist, returns the keyword list unchanged.
Examples
iex> Keyword.delete_first([a: 1, b: 2, a: 3], :a)
[b: 2, a: 3]
iex> Keyword.delete_first([b: 2], :a)
[b: 2]