Monads

From Rosetta Code
Revision as of 23:25, 28 January 2016 by rosettacode>Domgetter (Created Monads page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Demonstrate in your programming language the following:

 1. Construct a Monad (preferably the Option/Maybe Monad)
 2. Make two functions, each which take a number and return a wrapped number, and bind the two functions
 3. Retrieve the result of calling the result of the bind