asks<S, C, L, R> function

StateReaderTaskEither<S, C, L, R> asks<S, C, L, R>(
  1. R f(
    1. C c
    )
)

Projects a value from the global context in a StateReaderTaskEither.

Implementation

StateReaderTaskEither<S, C, L, R> asks<S, C, L, R>(R Function(C c) f) =>
    StateReaderTaskEither(
        (s) => ReaderTaskEither((c) => TE.right(tuple2(f(c), s))));