slang-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] iterate the elements of an assoc_array in sorted order


Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
>Indeed. Why foreach do not output the elements of an assoc_array in
>sorted order? Isn't it implemented as a tree and do foreach not traverse
>the tree in-order?

The current implementation uses a double-hashing scheme.  The
foreach-method simply walks the hash-table.  It makes no attempt to
sort the keys.

--John

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]