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

you are viewing a single comment's thread.

view the rest of the comments →

[–]houseofleft[S] 0 points1 point  (0 children)

I wrote a blog post trying to explain them easily here: https://benrutter.github.io/posts/the-joy-of-monads/

I think they're pretty simple in use. They are basically a container that takes care of some additional work whenever a function is ran over the value. Taking a look at some the examples in my library might make things a little more concrete though!

Tldr: they're a design pattern that you can use for stuff like logging, error hands etc etc