how to get top N distinct elements from range?

Timon Gehr timon.gehr at gmx.ch
Sat Mar 9 15:24:16 PST 2013


On 03/09/2013 10:35 AM, Andrea Fontana wrote:
> ...
>
> this works. Is this:
> bool[typeof(_fun((ElementType!Range).init))] mySet;
>
> the right way?

It's ok, but the redundant parentheses around the element type are 
confusing.


More information about the Digitalmars-d-learn mailing list