Monads/Writer monad: Difference between revisions

m
no edit summary
(JavaScript example)
 
mNo edit summary
Line 5:
Demonstrate in your programming language the following:
 
# Construct a Writer 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 implementedprovides)
# Write three simple functions: root, addOne, and half
# Derive Writer monad versions of each of these functions
9,659

edits