On 12/31/19 2:58 PM, H. S. Teoh wrote:
On Tue, Dec 31, 2019 at 09:33:14AM -0500, Steven Schveighoffer via 
Digitalmars-d-learn wrote:

writeln(" Text = ", gr1.map!((ref g) => g[]).joiner.to!string);

Unfortunately this doesn't work. Somehow the ref parameter doesn't match
whatever it is std.algorithm.map is trying to pass to it.

Huh, it seemed to work for me. Got the full "Robert" with an R. map does support ref-ness. Maybe you didn't put ref in the right place?


Reply via email to