Consider the following code: auto outer = [[[0]]]; auto result = outer.map!( middle => middle.map!( inner => inner.map!( i => 0 ) ).joiner ).joiner.back; Expected: result == 0 Got: core.exception.AssertError@dmd-2.085.1/linux/bin64/../../src/phobos/std/algorithm/iteration.d(567): Attempting to fetch the back of an empty map.
Shorter repro: [[[0]]].map!joiner.joiner.back;
@Spoov created dlang/phobos pull request #6995 "Fix Issue 19850 - double nested joiner .back falsely thinks the range…" fixing this issue: - Fix Issue 19850 - double nested joiner .back falsely thinks the range is empty https://github.com/dlang/phobos/pull/6995
dlang/phobos pull request #6995 "Fix Issue 19850 - double nested joiner .back falsely thinks the range…" was merged into stable: - 46a35b902882df5abcd2320c410dab692366cce5 by Spoov: Fix Issue 19850 - double nested joiner .back falsely thinks the range is empty https://github.com/dlang/phobos/pull/6995