MessageStore.MapExtra.fetch_in-exclamation-mark
You're seeing just the function
fetch_in-exclamation-mark
, go back to MessageStore.MapExtra module for more information.
Specs
Fetches the value for a specific path
in the given map, erroring out if map doesn't contain path
.
If map contains path
, the corresponding value is returned.
If map doesn't contain path
, a PathError
exception is raised.
Examples
iex> a = %{a: 1, b: %{c: 2}}
iex> MapExtra.fetch_in!(a, [:a])
1