Keyword.pop-exclamation-mark
You're seeing just the function
pop-exclamation-mark
, go back to Keyword module for more information.
Specs
Returns the first value for key
and removes all associated entries in the keyword list,
raising if key
is not present.
This function behaves like pop/3
, but raises in cases the key
is not present in the
given keywords
.
Examples
iex> Keyword.pop!([a: 1], :a)
{1, []}
iex> Keyword.pop!([a: 1, a: 2], :a)
{1, []}
iex> Keyword.pop!([a: 1], :b)
** (KeyError) key :b not found in: [a: 1]