Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Are ordered hashes useful?



On 14/02/2011 03:20, Stephen J. Turnbull wrote:
But most of the examples you give there (eg, histogram) are really
special cases of dictionary.

No, I don't think so, and this is the point. Dictionaries define a transformation between list A and list B. If you want to be pedantic, then formally, yes, a histogram is a case of a dictionary. But in terms of how it's being used, there isn't a second data structure B - it's just telling you properties about list A. What we often think of as mapping between two lists is more often asking questions about the structure of one list.



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links