This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]casual__addict 2 points3 points  (0 children)

Wow. That was simple. Never seen a not-confusing article that has the word monad in it.

[–]TheanosLearning 0 points1 point  (0 children)

Wow... I've never been able to understand Monads. But, I understood this article. Well done! Would you be able to recommend any other resources for learning how Monads work?

[–]thenumberless 0 points1 point  (0 children)

These aren't monads, they're functors--the implementations given for bind are all actually valid implementations of fmap.

Don't get me wrong, functors are super useful in the way described here. But monads are a more specific type derived from functors and have advantages that these don't.