def index(value, array):
i = array.searchsorted(value)<EOL>if i == len(array): return -<NUM_LIT:1><EOL>else:               return i<EOL>
Array search that behaves like I want it to. Totally dumb, I know.