PFP Laboratory 10

From Marek Běhálek Wiki
Jump to navigation Jump to search

Monads

  • In your prefered programming language, implement data type representing Maybe.
  • Implement functions bind and return as it is defined for monads.
  • Using implemented opertions, implement functions apply and fmap as it is define for Applicative and Functor.