flatMapOption<S, C, L, A, B> function
StateReaderTaskEither<S, C, L, B> Function(StateReaderTaskEither<S, C, L, A> )
flatMapOption<S, C, L, A, B>(
- Option<
B> f(- A a
- L onNone(
- A a
Implementation
StateReaderTaskEither<S, C, L, B> Function(StateReaderTaskEither<S, C, L, A>)
flatMapOption<S, C, L, A, B>(
Option<B> Function(A a) f,
L Function(A a) onNone,
) =>
flatMap((a) => f(a).p(fromOption(() => onNone(a))));