foldMapEvaluation<E, R, W, S> method
Evaluation<E, R, W, S, A>
foldMapEvaluation<E, R, W, S>(
- EvaluationMonad<
E, R, W, S> m, - Evaluation<
E, R, W, S, dynamic> f(- F fa
Implementation
Evaluation<E, R, W, S, A> foldMapEvaluation<E, R, W, S>(EvaluationMonad<E, R, W, S> m, Evaluation<E, R, W, S, dynamic> f(F fa)) =>
/*step().*/ fold((a) => m.pure(a), (fa) => f(fa).map((a) => cast<A>(a)), (ffb, f2) => ffb.foldMapEvaluation(m, f).bind((c) => f2(c).foldMapEvaluation(m, f)));