λ Tony's blog λ
The weblog of Tony Morris

Java Trivia

Posted on May 31, 2010, in Programming

Implement the missing function body. These rules must be followed:

How many different ways of achieving the objective?

  interface Function<A, B> {
    B apply(A a);

  class C {
    static <A, B, C> Function<A, C> c(final Function<A, B> f,
                                      final Function<B, C> g) {
        .... todo