fromReaderTask<S, C, L, R> function
Transforms a ReaderTask into a StateReaderTaskEither, wrapping the result in an Right.
Implementation
StateReaderTaskEither<S, C, L, R> fromReaderTask<S, C, L, R>(
ReaderTask<C, R> f,
) =>
StateReaderTaskEither(
(s) => RTE.fromReaderTask(f.chain(RT.map((r) => tuple2(r, s)))),
);