Comment #2 by default_357-line — 2023-04-18T13:44:16Z
The example was rubbish. How about this:
```
void main()
{
import std.algorithm : joiner, map;
import std.array : array;
static immutable struct S
{
int[] arr;
}
auto range = [S([3]), S([4, 5])];
assert(range.map!"a.arr".joiner.array == [3, 4, 5]);
}
```
Comment #3 by dlang-bot — 2023-04-18T14:44:17Z
@FeepingCreature created dlang/phobos pull request #8737 "Fix issue 22785: `joiner` should `Unqual` child ranges." fixing this issue:
- Fix issue 22785: `joiner` should `Unqual` child ranges.
This allows use with `immutable T[][]` and similar.
https://github.com/dlang/phobos/pull/8737
Comment #4 by dlang-bot — 2023-04-19T22:59:26Z
dlang/phobos pull request #8737 "Fix issue 22785: `joiner` should `Unqual` child ranges." was merged into master:
- 04ac328ad03744f36870d81ef06a08863dafd7db by Mathis Beer:
Fix issue 22785: `joiner` should `Unqual` child ranges.
This allows use with `immutable T[][]` and similar.
https://github.com/dlang/phobos/pull/8737