OkThen.Result.is_tagged_tuple

You're seeing just the macro is_tagged_tuple, go back to OkThen.Result module for more information.
Link to this macro

is_tagged_tuple(value)

(macro)

Returns true if result is a tagged tuple.

Examples

iex> Result.is_tagged_tuple(:ok)
true

iex> Result.is_tagged_tuple({:ok, "hello"})
true

iex> Result.is_tagged_tuple({:error, "hello"})
true

iex> Result.is_tagged_tuple({:ok, 1, 2})
true

iex> Result.is_tagged_tuple({:ok, {1, 2}})
true

iex> Result.is_tagged_tuple({:strange, "hello"})
true

iex> Result.is_tagged_tuple({"ok", "hello"})
false

iex> func = fn -> "hello" end
...> func.() |> Result.is_tagged_tuple()
false

iex> func = fn -> nil end
...> func.() |> Result.is_tagged_tuple()
false

iex> Result.is_tagged_tuple({nil, "hello"})
false