pipe8<A, B, C, D, E, F, G, H> function

H pipe8<A, B, C, D, E, F, G, H>(
  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
    ),
  8. H gh(
    1. G
    )
)

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

Implementation

H pipe8<A, B, C, D, E, F, G, H>(
    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,
    H Function(G) gh) {
  return gh(fg(ef(de(cd(bc(ab(a)))))));
}