Keyword.pop-exclamation-mark

You're seeing just the function pop-exclamation-mark, go back to Keyword module for more information.
Link to this function

pop!(keywords, key)

View Source (since 1.10.0)

Specs

pop!(t(), key()) :: {value(), t()}

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]