Sorting structs?

Tobias Pankrath tobias at pankrath.net
Wed Jan 29 04:44:36 PST 2014


On Wednesday, 29 January 2014 at 11:24:54 UTC, Stanislav Blinov 
wrote:
>
>     // Or avoid foreach altogether:
>     studs.map!((ref const s) => writeln(s.name));
> }
Did you test this one? std.algorithm.map is lazy.


More information about the Digitalmars-d-learn mailing list