moonsugar v0.1.2 API Reference

Modules

The Maybe module contains functions that help create and interact with the maybe type. The Maybe type is represented as either {:just, value} or :nothing

The Result module contains functions that help create and interact with the result type. The result type is represented as either {:ok, value} or {:error, reason}

The Validation module contains functions that help create and interact with the validation type. The Validation type is represented as either {:success, value} or {:failure, reasons}