fromOption<S, C, E, A> function
Implementation
StateReaderTaskEither<S, C, E, A> Function(Option<A> fa) fromOption<S, C, E, A>(
E Function() onNone,
) =>
(fa) => fa.chain(O.fold(() => left(onNone()), (a) => right(a)));