compose<B> method

B Function() compose<B>(
  1. B f(
    1. A a
    )
)

Compose two functions together

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

Implementation

B Function() compose<B>(B Function(A a) f) => () => f(this());