Exercises on implementing Reader, Writer and State monads in Scala

In spirit of Tony Morris’ exercise on implementing TReader (and some other exercises: 1, 2 ) I’ve assembled three more exercises, that might help develop an understanding on how Reader, Writer and State monads work:

  1. Reader
  2. Writer
  3. State

Here’s how you should go about those exercises:

Comments

blog comments powered by Disqus