Message146290
OK, looking at the code I realised what you're trying to get at is the idea of reporting the differences between values in a series, such that:
x = list(accumulate(seq))
assert x == list(accumulate(differences(x)))
I don't think the use cases are there to justify the addition (not every iterator we can think of should be a building block in itertools), but if such a thing were to be added, "differences" would convey the intention significantly better than the invented term "decumulate". |
|
Date |
User |
Action |
Args |
2011-10-24 10:45:05 | ncoghlan | set | recipients:
+ ncoghlan, rhettinger, petri.lehtinen, carlo.verre |
2011-10-24 10:45:05 | ncoghlan | set | messageid: <1319453105.57.0.717854970654.issue13252@psf.upfronthosting.co.za> |
2011-10-24 10:45:04 | ncoghlan | link | issue13252 messages |
2011-10-24 10:45:04 | ncoghlan | create | |
|