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