Message146290
| Author |
ncoghlan |
| Recipients |
carlo.verre, ncoghlan, petri.lehtinen, rhettinger |
| Date |
2011年10月24日.10:45:04 |
| SpamBayes Score |
2.157544e-05 |
| Marked as misclassified |
No |
| Message-id |
<1319453105.57.0.717854970654.issue13252@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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". |
|
History
|
|---|
| 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 |
|