November 23, 2013 InputRange Concatenation | ||||
|---|---|---|---|---|
| ||||
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 Re: InputRange Concatenation | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | 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 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply