flatMap<ENV, A, B> function

ReaderTask<ENV, B> Function(ReaderTask<ENV, A> ) flatMap<ENV, A, B>(
  1. ReaderTask<ENV, B> f(
    1. A
    )
)

Implementation

ReaderTask<ENV, B> Function(ReaderTask<ENV, A>) flatMap<ENV, A, B>(
  ReaderTask<ENV, B> Function(A) f,
) =>
    (rt) => (env) {
          final task = rt(env);
          return () async => f(await task())(env)();
        };