Another fun one: partialSort with two ranges

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 3 17:02:35 PST 2015


On 12/03/2015 06:19 PM, Timon Gehr wrote:
>
> void partialSort(alias less="a<b",R,S)(R r,S s) /+if(...)+/
> { topN!less(r,s); sort!less(r); }

Sorry, I was hasty. Yes, that's the good stuff. -- Andrei


More information about the Digitalmars-d mailing list