import std.stdio, std.range; void main() { auto odds = sequence!("a.field[0] + n * a.field[1]")(1, 2); writeln(odds.front, '\t', odds[0]); // 1 1 odds.popFront; writeln(odds.front, '\t', odds[0]); // 3 1 odds.popFront; writeln(odds.front, '\t', odds[0]); // 5 1 }
Fixed SVN.