(a, x)
Locate the leftmost value exactly equal to x
Locate the leftmost value exactly equal to x
Locate the leftmost value exactly equal to x
def _find_lteq(a, x):
    'Locate the leftmost value exactly equal to x'
    i = bisect_left(a, x)
    if i != len(a) and a[i] == x:
        return i
    raise ValueError
def _find_lteq ( a , x ) : i = bisect_left ( a , x ) if i != len ( a ) and a [ i ] == x : return i raise ValueError