Result.Ok (result v1.7.2)
A Ok creator
Link to this section Summary
Link to this section Types
Link to this type
t(val)
Specs
t(val) :: {:ok, val}
Link to this section Functions
Link to this function
of(value)
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}