<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def index(value, array):
 """ Array search that behaves like I want it to. Totally dumb, I know. """

    i = array.searchsorted(value)
    if i == len(array): return -1
    else:               return i