Functional Sort
"Nordlöw" via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Nov 15 09:23:42 PST 2014
On Saturday, 15 November 2014 at 14:34:07 UTC, Nordlöw wrote:
> What's wrong with my isArray-overload of sorted?
I solved it by replacing
R s = r.dup;
with
auto s = r.dup;
As a follow up I know wonder if it is ok for isArray-overload of
sorted() to have return type ubyte[] if input is a string?
I wonder because x.array.sort has type
dchar[]
when x is a string.
More information about the Digitalmars-d-learn
mailing list