what could be a nice one-liner to get the highest index in a python array whose value is defined (i.e. not None):
f( [None, 1, 5, None, 3, None, None] )
would return:4 (as the "last" defined element is 4. (with value 3))
Sure a search loop would make the job, but it feels non optimal...