forwardDifference

Compute Forward Difference of range.

TODO: Is there a difference between whether R r is immutable, const or mutable?

TODO: If r contains only one element return empty range.

forwardDifference
(
R
)
(
R r
)
if (
isInputRange!R
)

Examples

auto x = [long.max, 0, 1];
auto y = x.forwardDifference;
version(show) dbg(y);

See Also

Meta