flatMapOption<C, L, A, B> function
ReaderTaskEither<C, L, B> Function(ReaderTaskEither<C, L, A> )
flatMapOption<C, L, A, B>(
- Option<
B> f(- A a
- L onNone(
- 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))));