Implement index selection for named and positional parameters.