Yield pairwise cumulative sums of l from 0.
abjad> l = [1, 2, 3, 4, 5, 6] abjad> g = listtools.pairwise_cumulative_sums_zero(l) abjad> list(g) [(0, 1), (1, 3), (3, 6), (6, 10), (10, 15), (15, 21)]
Note that this function returns a generator.
listtools.pairwise
listtools.partition_by_lengths
Enter search terms or a module, class or function name.