create a partial function for variable number of applied arguments