Make last argument the object to be applied in function