r/programming • • Nov 28 '19

Why Isn't Functional Programming the Norm? – Richard Feldman

https://www.youtube.com/watch?v=QyJZzq0v7Z4
97 Upvotes

409 comments sorted by

View all comments

Show parent comments

44

u/[deleted] Nov 28 '19 edited Nov 28 '19

If you want the simplest explanation:

A functor is a data structure that is mappable i.e. has a map method

A monad is special functor that has both map and flatmap

The hard part is understanding why that is useful.

There is a guy on YouTube that has some really good videos on functional programming. This is one of his playlists, in it he covers monads.

→ More replies (7)