Param: new method to return the index of the value when it's limited by a list.