On Aug 27, 5:34 pm, bearophileH... at lycos.com wrote: > George Sakkis: > > > This seems the most efficient so far for arbitrary iterables. > > This one probably scores well with Psyco ;-) I think if you update this so that it returns the "good" iterable instead of the starting index, it is equivalent to Gerard's solution. George