clustering.py
def index(a, x):
    'Locate the leftmost value exactly equal to x'
    i = bisect.bisect_left(a, x)
    if i != len(a) and a[i] == x:
        return i
    else: return -1
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 index(a, x):
    i = bisect.bisect_left(a, x)
    if i != len(a) and a[i] == x:
        return i
    else: return -1
def index ( a , x ) : i = bisect . bisect_left ( a , x ) if i != len ( a ) and a [ i ] == x : return i else : return - 1
Locate the leftmost value exactly equal to x
Locate the leftmost value exactly equal to x
'Locate the leftmost value exactly equal to x'
a
x