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