Bind and Return

Back to Monad Pattern

The two fundamental monad operations: return (also called unit or of) wraps a value in the monadic context, and bind (also called flatMap or >>=) chains computations that produce monadic values, handling the unwrapping and rewrapping automatically.

property monad bind-return