Implemented partial application of functions.