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.

Abstract

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.