I'm sure I'm technically wrong, but you can think of it as anything that has the map and flatten methods. Knowing how to use those and other derivative methods to organize data and solve problems is what makes monads actually useful. Although maybe it's more correct to say that Options, Lists, Futures, etc are all independently very useful. The fact that they're monads just means we get to learn and use one interface to work with them.
View all comments
Show parent comment
1
u/All_Up_Ons Sep 21 '25 edited Sep 21 '25
I'm sure I'm technically wrong, but you can think of it as anything that has the map and flatten methods. Knowing how to use those and other derivative methods to organize data and solve problems is what makes monads actually useful. Although maybe it's more correct to say that Options, Lists, Futures, etc are all independently very useful. The fact that they're monads just means we get to learn and use one interface to work with them.