def start_index_of_value_in_range(
        value,
        values):
    result = -1
    if len(values) > 0:
        if values[0] <= values[-1]:
            result = start_index_of_value_in_increasing_range(value, values)
        else:
            result = start_index_of_value_in_decreasing_range(value, values)
    return result
Return index of *value* in *values*.
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/suitability/toolboxes/scripts/MultidimensionSupplementalTools/MultidimensionSupplementalTools/Scripts/mds/math.py/start_index_of_value_in_range