Force a given function to accept a maximum number of arguments.