flatMapOption<C, L, A, B> function

ReaderTaskEither<C, L, B> Function(ReaderTaskEither<C, L, A>) flatMapOption<C, L, A, B>(
  1. Option<B> f(
    1. A a
    ),
  2. L onNone(
    1. A a
    )
)

Implementation

ReaderTaskEither<C, L, B> Function(ReaderTaskEither<C, L, A>)
    flatMapOption<C, L, A, B>(
  Option<B> Function(A a) f,
  L Function(A a) onNone,
) =>
        flatMap((a) => f(a).p(fromOption(() => onNone(a))));