Access.at-exclamation-mark
You're seeing just the function
at-exclamation-mark
, go back to Access module for more information.
Specs
at!(integer()) :: access_fun(data :: list(), current_value :: term())
Same as at/1
except that it raises Enum.OutOfBoundsError
if the given index is out of bounds.
Examples
iex> get_in([:a, :b, :c], [Access.at!(2)])
:c
iex> get_in([:a, :b, :c], [Access.at!(3)])
** (Enum.OutOfBoundsError) out of bounds error