def partial_sums(sequence):
    s = sequence.next()
    yield s
    for t in sequence:
        s += t
        yield s
Computes the opcode-to-lu dispatch table.
dataset/ETHPy150Open probcomp/bayeslite/src/math_util.py/partial_sums--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/mcpu.py/_ComputeDispatchTable