Functional Sort

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 14 17:01:56 PST 2014


On Saturday, 15 November 2014 at 00:47:57 UTC, Meta wrote:
>> `sort` returns a SortedRange, so sort is the function you're 
>> looking for.
>
> Sorry, and if you want a copy, just add a `.array` on the end 
> to create a new array from the returned range.

Great!

Should I use std.algorithm.array or std.array.array in these 
cases?


More information about the Digitalmars-d-learn mailing list