InputRange Concatenation

"Nordlöw" per.nordlow at gmail.com
Sat Nov 23 15:39:11 PST 2013


Is there a higher-order range pattern that concatenate two 
InputRanges?

Something like

     foreach (e; a) {
         // do stuff with e
     }
     foreach (e; b) {
         // do stuff with e
     }
     ...

should instead be written as

     foreach (e; someMagic(a, b, ...)) {
         // do stuff with e
     }


More information about the Digitalmars-d-learn mailing list