range

Undocumented in source. Be warned that the author may not have intended to support it.

Examples

assert(range(1, 2) + 1 == range(2, 3));
assert(1 + range(1, 2) == range(2, 3));
auto a = range(10, 20);
auto b = range(10, 20);
auto c = a * b;
assert(c.avg == 225);

Meta