OkThen.Result.from_as-exclamation-mark
You're seeing just the function
from_as-exclamation-mark
, go back to OkThen.Result module for more information.
Link to this function
from_as!(value, tag)
Specs
Same as from_as/2
, except raises ArgumentError
if value
is nil
.
Examples
iex> "hello" |> Result.from_as!(:ok)
{:ok, "hello"}
iex> nil |> Result.from_as!(:ok)
** (ArgumentError) Value is nil.