code: def get_index_nested(x, i):
      
      for ind in range(len(x)):
          if i == x[ind]:
              return ind
      return -1
docs: Description:
          Returns the first index of the array (vector) x containing the value i.
      Parameters:
          x: one-dimensional array
          i: search value