TreeSet

Moritz Warning moritzwarning at web.de
Sat Aug 2 10:26:34 PDT 2008


On Sat, 02 Aug 2008 09:06:42 -0400, Toki wrote:

> Hi,
> I want to port my Java app to D.
> Is there sometinhg like a TreeSet in D?
> 
> Best Regards
> Thorsten
You can use an associative array with a boolean dummy key, e.g.:
uint[bool] myset;

or you can use the Tango library, it has tango.util.container.HashSet.



More information about the Digitalmars-d mailing list