Sort in return statement

codephantom me at noyb.com
Sat Dec 9 15:10:50 UTC 2017


On Saturday, 9 December 2017 at 14:49:28 UTC, Seb wrote:
>
> randomSample doesn't sort its returned range

Not by design, however, because it samples in the order that the 
elements appear, *if* those elements are already sorted (whether 
by design or explicately sorted), then the results of the 
randomsample are also implicitly already sorted ;-)



More information about the Digitalmars-d-learn mailing list