Behaviours: do_applicative, do_functor, do_monad.
either(A, B) = {error, A} | {ok, B}
fn(A, B) = fun((A) -> B)
fn(A) = fun(() -> A)
map(A) = #{term() := A}
maybe(A) = {just, A} | nothing
monad(A) = [A] | either(term(), A) | maybe(A)
traversable(A) = [A] | map(A)
bind/2 | |
do/2 | |
either/3 | |
errors/1 | |
fmap/2 | |
from_error/2 | |
from_ok/2 | |
is_error/1 | |
is_ok/1 | |
lift/1 | |
liftA2/2 | |
liftm/2 | |
liftmz/2 | |
oks/1 | |
partition/1 | |
pure/1 | |
sequence/1 | |
then/2 |
errors(Eithers::[either(A, term())]) -> [A]
from_error(A, Either::either(A, term())) -> A
from_ok(B, Either::either(term(), B)) -> B
is_error(Either::either(term(), term())) -> boolean()
is_ok(Either::either(term(), term())) -> boolean()
oks(Eithers::[either(term(), B)]) -> [B]
partition(Eithers::[either(A, B)]) -> {[A], [B]}
pure(B) -> either(term(), B)
sequence(Eithers::traversable(either(A, B))) -> either(A, traversable(B))
Generated by EDoc