asks<R, A> function

ReaderTask<R, A> asks<R, A>(
  1. Reader<R, A> f
)

Projects a value from the global context in a ReaderTask.

Implementation

ReaderTask<R, A> asks<R, A>(Reader<R, A> f) => ReaderTask((r) => T.value(f(r)));