[Issue 8910] Static arrays, dynamic arrays and std.array.join
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 29 15:45:13 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8910
timon.gehr at gmx.ch changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |timon.gehr at gmx.ch
--- Comment #5 from timon.gehr at gmx.ch 2012-10-29 15:45:12 PDT ---
This works without allocating:
import std.stdio, std.array, std.algorithm;
void main() {
char[5][2] cs = 'x';
char[] j = cs[].map!((char[]a)=>a).join(",");
writeln(j);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list