Do-Notation

Back to Monads & Functors

Syntactic sugar for chaining monadic operations in an imperative-looking style. Do-notation (Haskell) or for-comprehensions (Scala) make sequential monadic code more readable by hiding the explicit bind (>>=) calls.

programming-paradigms functional do-notation