On Tuesday, 1 November 2016 at 22:13:29 UTC, e-y-e wrote:
On Tuesday, 1 November 2016 at 22:09:50 UTC, e-y-e wrote:
On Tuesday, 1 November 2016 at 22:06:36 UTC, Ivan Kazmenko
wrote:
...
damn, that was a typo [cumulativeFold -> cumulativeSum]
similarly, in the first para, cumulativeSum!((a, b) => a +
b)(r, s) -> cumulativeFold!((a, b) => a + b)(r, s)
Ouch, and I completely misread the TL;DR paragraph, sorry for the
noise!
It's logical to have cumulativeSum specialized from
cumulativeFold when sum is a specialization of fold.
I have yet to write a program which relies on Kahan summation,
but I can imagine that being useful.
Ivan Kazmenko.