OkThen.Result.is_ok
You're seeing just the macro
is_ok
, go back to OkThen.Result module for more information.
Returns true if result
is tagged :ok
.
Equivalent to is_tagged(value, :ok)
. See is_tagged/2
.
Examples
iex> Result.is_ok(:ok)
true
iex> Result.is_ok({:ok, "hello"})
true
iex> Result.is_ok({:error, "hello"})
false