

def augment_intervals(it, i, key):
    last = None
    for value in it:
        k = i(value)
        if ((last is not None) and (k < last)):
            raise ValueError('invalid order')
        (yield (k, i, value))

dataset/ETHPy150Open bioinformed/vgraph/vgraph/intervals.py augment_intervals/VarMisuse@27/31 `key`->`i`