Sorting structs?

Stanislav Blinov stanislav.blinov at gmail.com
Wed Jan 29 04:49:09 PST 2014


On Wednesday, 29 January 2014 at 12:44:37 UTC, Tobias Pankrath 
wrote:
> 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.

Ah yes, sorry, my bad. I forgot to remove foreach during testing 
and assumed it worked. Facepalm m)


More information about the Digitalmars-d-learn mailing list