pipe5<A, B, C, D, E> function

E pipe5<A, B, C, D, E>(
  1. A a,
  2. B ab(
    1. A
    ),
  3. C bc(
    1. B
    ),
  4. D cd(
    1. C
    ),
  5. E de(
    1. D
    )
)

Transforms the input a by applying the function ab, then bc, then cd and then de.

Implementation

E pipe5<A, B, C, D, E>(A a, B Function(A) ab, C Function(B) bc,
    D Function(C) cd, E Function(D) de) {
  return de(cd(bc(ab(a))));
}