What is the best way to lazily concatentate together a range of ranges in D?
Use std.algorithm.joiner
. e.g.
auto ror = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ];
auto joined = joiner(ror);
assert(equal(joined, [1, 2, 3, 4, 5, 6, 7, 8, 9]));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With