Skip to content(if available)orjump to list(if available)

Stepanov's biggest blunder? The curious case of adjacent difference

fph

I think it's also because C++ has no generic concept of "zero"; otherwise one could have defined the first element of adjacent_difference(v) as v(1)- zero<typeof(v)>, and it would have been type-stable.

getnormality

For anyone wanting to go deeper, Knuth's Concrete Mathematics covers the discrete calculus topics mentioned here (and much more).