std.effect.reader
Implementation of the Reader
effect
Types
The Reader
effects provides a shared, immutable environment for the effectful functions using it
Values
Retrieve the value from the environment
Retrieve the value from the environment while applying f
to it
Runs a computation in a modified environment.
let run_reader s eff : forall a r .
forall s . s -> Eff [| reader : Reader s | r |] a -> Eff [| | r |] a
Eliminates the Reader
effect