Function composition a la Scala's Function1.