Algae v0.12.1 Algae.Maybe.Just
A simple, single-value-wrapping struct, much like Algae.Id
.
Represents the presence of a value; one possible analog of {:ok, value}
Examples
iex> %Algae.Maybe.Just{just: 42}
%Algae.Maybe.Just{just: 42}
Summary
Functions
Wrap a value in a Just
struct
Types
t :: %Algae.Maybe.Just{just: any}
Functions
Specs
new(any) :: Algae.Maybe.Just.t
Wrap a value in a Just
struct
Examples
iex> new(99)
%Algae.Maybe.Just{just: 99}