binder v0.1.0 Binder.Either

Handle functions that return success or error tuples In the types below, the tuple is designated as { , } where is either :ok or :error

ok => { :ok, } error => { :error, }

Link to this section Summary

Functions

{ , x } -> (x -> { , }) -> { , y }

x -> { :error, x }

returns true if { :error, } or :error

{ , x } -> (x -> y) -> { , y }

x -> { :ok, x }

returns true if { :ok, }

Link to this section Functions

{ , x } -> (x -> { , }) -> { , y }

x -> { :error, x }

returns true if { :error, } or :error

{ , x } -> (x -> y) -> { , y }

x -> { :ok, x }

returns true if { :ok, }