Support partial application of if