def enumerate(collection):
        i = 0
        it = iter(collection)
        while 1:
            yield (i, it.next())
            i += 1
Generates an indexed series:  (0, collection[0]), (1, collection[1]), ...
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/aid.py/enumerate