Result.Ok (result v1.7.2)

A Ok creator

Link to this section Summary

Functions

Create Ok result from value

Link to this section Types

Specs

t(val) :: {:ok, val}

Link to this section Functions

Specs

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}