SRFI 165: The Environment Monad

by Marc Nieper-Wi├čkirchen

status: final (2019-09-05)

keywords: Miscellaneous

See also SRFI 159: Combinator Formatting and SRFI 166: Monadic Formatting.


Monads model computations. The environment monad models computations that depend on values from a shared environment. These computations can read values from the environment, pass values to subsequent computations, execute sub-computations in an extended environment, and modify the environment for future computations.