Algae v0.12.1 Algae.Either.Left

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

Examples

iex> %Algae.Either.Left{left: ArgumentError.exception("oopsie")}
%Algae.Either.Left{
  left: %ArgumentError{message: "oopsie"}
}

Summary

Functions

Wrap a value in a Left struct

Types

t :: %Algae.Either.Left{left: any}

Functions

new(value)

Specs

new(any) :: Algae.Either.Left.t

Wrap a value in a Left struct

Examples

iex> new("field")
%Algae.Either.Left{left: "field"}