map4<F, A, A2 extends A, B, B2 extends B, C, C2 extends C, D, D2 extends D, E> static method
Free<F, E>
map4<
F, A, A2 extends A, B, B2 extends B, C, C2 extends C, D, D2 extends D, E>( - Free<F, A2> fa,
- Free<F, B2> fb,
- Free<F, C2> fc,
- Free<F, D2> fd,
- E fun(
- A a,
- B b,
- C c,
- D d,
),
)
Implementation
static Free<F, E> map4<F, A, A2 extends A, B, B2 extends B, C, C2 extends C, D, D2 extends D, E>(Free<F, A2> fa, Free<F, B2> fb, Free<F, C2> fc, Free<F, D2> fd, E fun(A a, B b, C c, D d)) =>
fa.flatMap((a) => fb.flatMap((b) => fc.flatMap((c) => fd.map((d) => fun(a, b, c, d)))));