March 09, 2013 Re: how to get top N distinct elements from range? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | 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.
|
Copyright © 1999-2021 by the D Language Foundation