SRFI 165: The Environment Monad

by Marc Nieper-Wi├čkirchen

status: draft (2019/2/13)

See also SRFI 159: Combinator 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.