docs: def findLastCharIndexMatching(text, func):
      """ Return index of last character in string for which func(char) evaluates to True. """
      for i in range(len(text) - 1, -1, -1):
        if func(text[i]):
          return i