El Monads v0.1.1 ElMonads.Maybe View Source

This is Maybe monad. It contains 2 public methods: m and get. Use m method to combain your actions: result = Maybe.m(fn -> foo() end) |> Maybe.m(fn e -> bar(e) end) |> Maybe.get. It’ll pass the result of your actions to result. If any function return nil, result will be nil.

Link to this section Summary

Link to this section Functions

Link to this function get(computations) View Source
get([any]) :: any
Link to this function m(f) View Source
m(function) :: [any]
Link to this function m(computations, f) View Source
m([any], function) :: [any]
m(any, function) :: [any]