fromReaderTaskEither<S, C, L, R> function

StateReaderTaskEither<S, C, L, R> fromReaderTaskEither<S, C, L, R>(
  1. ReaderTaskEither<C, L, R> rte
)

Returns a StateReaderTaskEither that resolves to the given ReaderTaskEither.

Implementation

StateReaderTaskEither<S, C, L, R> fromReaderTaskEither<S, C, L, R>(
        ReaderTaskEither<C, L, R> rte) =>
    StateReaderTaskEither((s) => rte.chain((RTE.map((a) => tuple2(a, s)))));