|
|
| | Ask HN: Why do I always want to use an ordered dictionary? | |
7 points by noaharc on Feb 26, 2009 | hide | past | favorite | 15 comments
|
| | I routinely find myself yearning for this data structure in almost every project, but I've scoured the web, and inevitably I just find forum postings saying something along the lines of "dictionaries are unordered, idiot". I usually end up just making a list and dictionary, but it strikes me as inelegant. And, if it were truly a common problem, I can't believe someone hasn't made this data structure before. So I must be doing something wrong in the way I'm thinking about these problems. Any idea what it is? |
|
![](s.gif)
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|