View Source API Reference Fey v0.0.3

Modules

Fey.Enum module provides alternatives to some functions from Enum module from the standard library, returning option informing about the result of the lookup. This allows, among others, to distinguish between situation when the found value is nil and when the value is not found.

Functions similar to those in Fey.Enum, but returning result tuples ({:ok, value} or {:error, :not_found}) instead of option types.

Option module serves a similar, but less popular in Elixir, pattern. Instead of {:ok, something} or {:error, message} tuples, Option works with {:some, value} or :none.

The module provides functions to work with a well-established pattern of result tuples (sometimes called "tagged tuples") in Elixir. By them we mean {:ok, value} or {:error, error} tuples.