indexOfBestNotNullBy
Returns the index of the first element in this sequence that is not null and is better than all previous elements.
Returns -1 if there are no elements non-null elements in this.
Parameters
isBetterThan
A function defining what it means for a value to be "better" than another.