I'd do it like this: import std.algorithm : map; pars.map!((part) => part.toString) // Turn them to strings .join(" ").writeln; // Join them.
Thanks! Does the map function iterate without constructing an extra list in-memory?
pineapple via Digitalmars-d-learn Thu, 11 Feb 2016 05:47:16 -0800
I'd do it like this: import std.algorithm : map; pars.map!((part) => part.toString) // Turn them to strings .join(" ").writeln; // Join them.
Thanks! Does the map function iterate without constructing an extra list in-memory?