result v1.3.0 Result.Ok

A Ok creator

Link to this section Summary

Functions

Create Ok result from value

Link to this section Types

Link to this type t(val)
t(val) :: {:ok, val}

Link to this section Functions

Link to this function of(value)
of(arg) :: t(arg) when arg: var

Create Ok result from value

Examples

iex> Result.Ok.of("a")
{:ok, "a"}

iex> Result.Ok.of(12345)
{:ok, 12345}