PFP Laboratory 10

From Marek Běhálek Wiki
Revision as of 07:55, 22 November 2022 by Beh01 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.