Sort in return statement

rjframe dlang at ryanjframe.com
Sat Dec 9 14:05:36 UTC 2017


On Sat, 09 Dec 2017 07:32:42 +0000, Seb wrote:

> 
> Use .release to obtain the underlying array. No need to do another
> allocation!
> 
> ```
> numbers.take(8).sort.release;
> ```

I did not realize that was there; thanks.


More information about the Digitalmars-d-learn mailing list