Forward Difference Algorithm
Ali Çehreli
acehreli at yahoo.com
Wed Jan 8 14:59:49 PST 2014
On 01/08/2014 11:40 AM, "Nordlöw" wrote:
> Is/Are there a function(s) in `std.algorithm` or `std.range` with which
> to lazily compute a forward difference? I need this to differentially
> pack sorted elements (integers) in a range. The integers happen to be
> `SysTime` timestamps.
There is a forward difference page on Rosetta Code:
http://rosettacode.org/wiki/Forward_difference#D
Ali
More information about the Digitalmars-d-learn
mailing list