Top "Monads" questions

A monad in programming is a composable computation description.

In C#, What is a monad?

There is a lot of talk about monads these days. I have read a few articles / blog posts, but I …

c# c#-3.0 lambda monads
What is the purpose of the reader monad?

The reader monad is so complex and seems to be useless. In an imperative language like Java or C++, there …

haskell monads reader-monad
A Haskell function of type: IO String-> String

I wrote a bunch of code in Haskell to create an index of a text. The top function looks like …

haskell io monads readfile
scala Iterable#map vs. Iterable#flatMap

What is the difference between the map and flatMap functions of Iterable?

scala monads scala-collections
Haskell: can't use "map putStrLn"?

I have a list of strings, and tried this: ls = [ "banana", "mango", "orange" ] main = do map PutStrLn list_of_strings …

haskell io monads
Why are side-effects modeled as monads in Haskell?

Could anyone give some pointers on why the impure computations in Haskell are modelled as monads? I mean monad is …

haskell functional-programming monads
Pattern to avoid nested try catch blocks?

Consider a situation where I have three (or more) ways of performing a calculation, each of which can fail with …

c# design-patterns try-catch monads
Haskell Monad bind operator confusion

Okay, so I am not a Haskell programmer, but I am absolutely intrigued by a lot of the ideas behind …

haskell monads composition currying function-composition
Using Eithers with Scala "for" syntax

As I understand it, Scala "for" syntax is extremely similar to Haskell's monadic "do" syntax. In Scala, "for" syntax is …

scala monads typeclass for-comprehension either
Good examples of Not a Functor/Functor/Applicative/Monad?

While explaining to someone what a type class X is I struggle to find good examples of data structures which …

haskell monads functor applicative