Monads/List monad

Revision as of 03:33, 1 February 2016 by rosettacode>Domgetter (Created List monad page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Demonstrate in your programming language the following:

   Construct a List Monad by writing the 'bind' function and the 'unit' (sometimes known as 'return') function for that Monad (or just use what the language already has implemented)
   Make two functions, each which take a number and return a monadic number, e.g. Int -> List Int and Int -> List String
   Compose the two functions with bind