Keyword.pop!/2
defmodule Keyword do
def pop!(keywords, key)
end
Returns the first value for key
and removes all associated entries in the keyword list.
It returns a tuple where the first element is the first value for key and the second element is a keyword list with all entries associated with key removed.
If the key
is not present in the keyword list, KeyError
is raised.