Euclid.Sugar.ok-exclamation-mark

You're seeing just the function ok-exclamation-mark, go back to Euclid.Sugar module for more information.

Specs

ok!({:ok, term()}) :: term()

Unwraps an :ok tuple, raising if the term is not an :ok tuple

Examples

iex> {:ok, 1} |> Euclid.Sugar.ok!()
1