View Source Avrogen.Util.Either (avrogen v0.8.5)

Fancy implementation of Either monad.

Summary

Types

@type either() :: {:ok, any()} | {:error, any()}
@type fun() :: (any() -> any())

Functions

@spec map(either(), (... -> any())) :: either()