interpreter<F> method
Function1<Free<Either<Either<First, Second> , Third> , dynamic> , F>
interpreter<F>(
- Monad<
F> M, - dynamic firstInterpreter(
- First op
- dynamic secondInterpreter(
- Second op
- dynamic thirdInterpreter(
- Third op
Implementation
Function1<Free<Either<Either<First, Second>, Third>, dynamic>, F> interpreter<F>(Monad<F> M, firstInterpreter(First op), secondInterpreter(Second op), thirdInterpreter(Third op)) {
final interpreter = composeInterpreters(composeInterpreters(firstInterpreter, secondInterpreter), thirdInterpreter);
return (fa) => fa.foldMap(M, interpreter);
}