pipe10<A, B, C, D, E, F, G, H, I, J> function

J pipe10<A, B, C, D, E, F, G, H, I, J>(
  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
    ),
  9. I hi(
    1. H
    ),
  10. J ij(
    1. I
    )
)

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

Implementation

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