pipe4<A, B, C, D> function
- A a,
- B ab(
- A
- C bc(
- B
- D cd(
- C
Transforms the input a
by applying the function ab
, then bc
and then cd
.
Implementation
D pipe4<A, B, C, D>(A a, B Function(A) ab, C Function(B) bc, D Function(C) cd) {
return cd(bc(ab(a)));
}