binder v0.1.0 Binder.Either
Handle functions that return success or error tuples
In the types below, the tuple is designated as {
ok => { :ok,
Link to this section Summary
Functions
{
x -> { :error, x }
returns true if { :error,
{
x -> { :ok, x }
returns true if { :ok,
Link to this section Functions
Link to this function
bind(err, f)
{
Link to this function
err(x)
x -> { :error, x }
Link to this function
err?(arg1)
returns true if { :error,
Link to this function
map(err, f)
{
Link to this function
ok(x)
x -> { :ok, x }
Link to this function
ok?(arg1)
returns true if { :ok,