compose<D> method

D Function(A a, B b) compose<D>(
  1. D f(
    1. C c
    )
)

Compose two functions together

add.compose(print);
// is the same as
() => print(add());

Implementation

D Function(A a, B b) compose<D>(D Function(C c) f) => (a, b) => f(this(a, b));