Re: Get ordered dict keys

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
> Is there a (simple) way to get the keys of a Dict structure in an
> ordered manner ??

that's the major problem with simple hash tables, they are not ordered
in terms of their contents and the keys that are defined.

To obtain this you would have to implement overhead binary tree
structures to the hash to provide a feasable search and ordering on
the structure.

I don't think you can have a simple way in obtaining the key in an
ordered way from a Dict. (please don't flame me if I'm wrong ;)
 
Stipe

[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Vogelsanger Weg 80
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.