Re: [Vala] Problem with Gee
- From: Nicolas <c r n a wanadoo fr>
- To: vala-list gnome org, jamie mccrack gmail com, keijser gmail com
- Subject: Re: [Vala] Problem with Gee
- Date: Sun, 04 Oct 2009 16:52:16 +0200
thats typical for all hash tables. A good hash function will randomly
distribute the keys in the table and so will almost never be in the
order you add them
If you want order, use a list but not a dict or a hash
the hashmap is not sorted. I suggest you read the wikipedia article on
hashmaps and it should be obvious why.
Thanks everyone for your response, i'm using a list and get the value
"in order" in the dict !
Nicolas.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]