Why do we need monads?

Why do we need monads? We want to program only using functions. (“functional programming (FP)” after all). Then, we have a first big problem. This is a program: f(x) = 2 * x g(x,y) = x / y How can we say what is to be executed first? How can we form an ordered sequence … Read more