Jump to content

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.