The type representing the shared environment.
The return value of the computation.
The wrapped computation.
Unpacks a Reader with a return value that is a function from A
to B
into a function from
Reader<E, A>
to Reader<E, B>
. Allows functions contained within a return value to transform
a return value contained within a Reader.
The type of the transformed return value.
Execute a computation in a modified environment.
Take a function that maps one type to another and lift it to work with Reader.
The type of the transformed return value.
Reads the current environment.
Projects a value from the global context in a Reader.
Create a new Reader that always returns the given value.
Generated using TypeDoc
A Reader represents a computation which can read values from a shared environment. Computations are implemented as functions that take the environment (E) and return a value (A).
Adapted from fp-ts/Reader.