pipe7<A, B, C, D, E, F, G> function

G pipe7<A, B, C, D, E, F, G>(
  1. A a,
  2. B ab(
    1. A
    ),
  3. C bc(
    1. B
    ),
  4. D cd(
    1. C
    ),
  5. E de(
    1. D
    ),
  6. F ef(
    1. E
    ),
  7. G fg(
    1. F
    )
)

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

Implementation

G pipe7<A, B, C, D, E, F, G>(A a, B Function(A) ab, C Function(B) bc,
    D Function(C) cd, E Function(D) de, F Function(E) ef, G Function(F) fg) {
  return fg(ef(de(cd(bc(ab(a))))));
}