code: def indexMatch(L, func):
      'returns the smallest i for which func(L[i]) is true'
      for i, x in enumerate(L):
          if func(x):
              return f indexMatch(L, func):
      'returns the smallest i for which func(L[i]) is true'
      for i, x in enumerate(L):
          if func(x):
              return i
docs: returns the smallest i for which func(L[i]) is true