Functional Sort
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Nov 14 17:35:30 PST 2014
On Saturday, 15 November 2014 at 01:01:57 UTC, Nordlöw wrote:
> 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?
There's only std.array.array. I think std.algorithm just
publically imports std.array.
More information about the Digitalmars-d-learn
mailing list