Avrogen.Util.Either (avrogen v1.1.0)

Copy Markdown View Source

Fancy implementation of Either monad.

Summary

Types

either()

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

fun()

@type fun() :: (any() -> any())

Functions

map(arg, function)

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