https://issues.dlang.org/show_bug.cgi?id=18653 --- Comment #1 from Seb <greensunny12 at gmail.com> --- Reduced it further: --- string demangle(string a) { return a; } void main() { import std.algorithm; [""].map!(l => l.chunkBy!(a => a == '_').map!demangle.joiner); } --- --