Algae v0.12.2 Algae.Maybe.Just View Source

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}

Link to this section Summary

Functions

Wrap a value in a Just struct

Link to this section Types

Link to this type t() View Source
t() :: %Algae.Maybe.Just{just: any}

Link to this section Functions

Wrap a value in a Just struct

Examples

iex> new(99)
%Algae.Maybe.Just{just: 99}