Algae v0.12.2 Algae.Either.Right View Source

Represent one side of a branching condition. In the case of representing potential error conditions, Right is traditionally associated with the nominal branch.

Examples

iex> %Algae.Either.Right{right: 88}
%Algae.Either.Right{right: 88}

Link to this section Summary

Functions

Wrap a value in a Right struct

Link to this section Types

Link to this type t() View Source
t() :: %Algae.Either.Right{right: any}

Link to this section Functions

Wrap a value in a Right struct

Examples

iex> new("here")
%Algae.Either.Right{right: "here"}