flatMap<ENV, A, B> function

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

Implementation

ReaderIO<ENV, B> Function(ReaderIO<ENV, A>) flatMap<ENV, A, B>(
  ReaderIO<ENV, B> Function(A) f,
) =>
    (rio) => (env) {
          final io = rio(env);
          return () => f(io())(env)();
        };