runReader
runReader is a function commonly found in functional programming libraries, particularly those inspired by Haskell and its type classes. It is primarily used with the Reader monad or ReaderT transformer. The purpose of runReader is to execute a computation that depends on an environment and to extract the final result.
The Reader monad is a way to represent computations that need access to a shared environment. This
The runReader function takes two arguments: the Reader computation itself and the environment that the computation
For example, if a Reader computation needs to access a configuration object, runReader would be used with