Is there an Ordered Dictionary?

Derek Brans brans at nerdonawire.com
Thu Jan 9 19:56:52 UTC 2003


Is there a dictionary that holds its associations in the same order you 
add them in?

So, if I do
	dict at: 'first field' put: firstValue
	dict at: 'secondfield' put: secondValue
	dict associationsDo: [ ... ]

it will do them in order?

BTW, on the subject of dictionaries, are you supposed to use 
associationsDo to iterate over all key - value pairs?  If so, why is the 
name for such a common operation so long and specific (not criticism, 
just curiosity... maybe there's a more accepted way to do it)?

Thank you in advance,
Derek

Nerd on a Wire: Web and Information Solutions
Website Design - Database Systems - Site Hosting
604.874.6463
mailto:info at nerdonawire.com
For more information, visit http://nerdonawire.com




More information about the Squeak-dev mailing list