Hi All,
Isn't there a save feature for iota()
?
import std.stdio;
import std.range;
void main()
{
foreach(num; iota!char('a', 'f').chunks(3)/*
"onetwosixfour".chunks(3)//*/
) {
//auto n = num.save();
num.writeln(": ", num.walkLength);
}
} /* Prints:
: 3
: 2
*/
So is there a way to find out the length of an iota()
range without consuming it?
SDB@79