Monads/List monad: Difference between revisions
< Monads
Content added Content deleted
(Created List monad page) |
(added Category: Monads) |
||
Line 1: | Line 1: | ||
[[Category:Monads]] |
|||
Demonstrate in your programming language the following: |
Demonstrate in your programming language the following: |
||
Revision as of 03:39, 1 February 2016
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