monex v0.1.1 MonEx
A collection of simple monadic types: Option, Result.
Summary
Functions
Applies function returning to content of monadic type
Calls supplied function with content of monadic type as an argument, expecting no return
Applies function to content of monadic type
Types
Functions
Applies function returning to content of monadic type:
Example: inverse = fn (x) -> if x == 0, do: none(), else: some(1/x) end some(5) |> flat_map(f) == some(1/5) some(0) |> flat_map(f) == none()
Calls supplied function with content of monadic type as an argument, expecting no return