Sort in return statement

codephantom me at noyb.com
Sat Dec 9 03:24:52 UTC 2017


On Saturday, 9 December 2017 at 02:45:35 UTC, rjframe wrote:
>
> `sort` returns a SortedRange of ushorts, not an array of 
> ushorts. Make it:
>
> ```
> import std.array : array;
> return sort(numbers.take(8)).array;
> ```
>
> --Ryan

That's it!

Thanks Ryan.




More information about the Digitalmars-d-learn mailing list