nth_element implementation?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Feb 13 06:11:13 PST 2009


wade wrote:
> Hi all,
> 
> Does anybody have an efficient nth_element implementation (ala the
> STL) for D 1.0.  I was using the version from algortihms.d in DMD
> 2.012 but that seems to be non-existent anymore and was quite buggy.
> 
> thanks, wade

The function is called topN in std.algorithm and still exists as far as 
I know. I did temporarily comment it out while working on the new 
std.algorithm, but I don't think I ever checked that in.

If there are bugs pertinent to 2.0, I'd appreciate a bugzilla entry 
about it.


Andrei



More information about the Digitalmars-d mailing list