pipe3<A, B, C> function

C pipe3<A, B, C>(
  1. A a,
  2. B ab(
    1. A
    ),
  3. C bc(
    1. B
    )
)

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

Implementation

C pipe3<A, B, C>(A a, B Function(A) ab, C Function(B) bc) {
  return bc(ab(a));
}