On Friday, 16 October 2015 at 11:38:35 UTC, John Colvin wrote:Nice !I wanted to use lockstep(r, r.dropOne) but it doesn't return a Range :-/It has to be used in a foreach.
Instead of lockstep you can always use zip (which is the same but returns a range)
zip(r, r[1..$]).map!((t) => t[1]-t[0]);