how to get top N distinct elements from range?

bearophile bearophileHUGS at lycos.com
Sat Mar 9 08:09:01 PST 2013


Andrea Fontana:

> Is this:
> bool[typeof(_fun((ElementType!Range).init))] mySet;
> 	
> the right way?

I don't know if that's the best way, but I think it's OK. (I 
think it should even go in the D wiki, so if it's not the best to 
do it, someone will improve it.)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list