Questions

  1. Why is the property of associativity that is essential for the monoid useful in a distributed setup?
  2. Implement a monoid for a Boolean under OR.
  3. Implement a monoid for a Boolean under AND.
  4. Given a Monoid[A], implement Monoid[Option[A]].
  5. Given a Monoid[R], implement Monoid[Either[L, R]].
  6. Generalize two previous implementations for any effect parameterized by A, or describe why this is not possible.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.108.175