View previous topic :: View next topic |
Author |
Message |
weldieran
Joined: 05 Aug 2005 Posts: 71
|
Posted: Sat Dec 03, 2005 21:12 Post subject: HashSet sorting (make it stop! lol) |
|
|
I tried to figure this out on my own.. to make HashSet STOP sorting the data i put into it. I would like the data to come back to me in the same order I put it in.
I looked at the map function of the standard library that hashset uses, and found a reference that says its possible to cancel the sorting that map does, but couldn't find anywhere that actually said how to do it.
Anyone know anything about it? (no, not interested in workarounds of using numbers in my keynames when adding data) |
|
Back to top |
|
|
vallis
Joined: 13 Jun 2005 Posts: 6
|
Posted: Mon Oct 09, 2006 6:40 Post subject: |
|
|
Late response, I know, but isn't a hash inherently unordered?
It sounds like you are trying to use a hash for a purpose it isn't designed for. (Sounds like what you want is a list, not a hash?)
V. |
|
Back to top |
|
|
|