November 23, 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
    }
November 23, 2013
On Saturday, 23 November 2013 at 23:39:12 UTC, Nordlöw wrote:
> Is there a higher-order range pattern that concatenate two InputRanges?

Sounds like you need std.range.chain:
http://dlang.org/phobos/std_range.html#chain