Is there an Ordered Dictionary?

Derek Brans brans at
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,

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

More information about the Squeak-dev mailing list