Consevutive calls to r.front
Dennis Ritchie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 7 18:04:05 PDT 2015
The foreach loop takes place in a for loop like this:
import std.range;
for (auto __c = 5.iota; !__c.empty; __c.popFront) {
auto elem = __c.front;
}
More information about the Digitalmars-d-learn
mailing list