Dictionary
Last updated at 1:48 pm UTC on 10 December 2005
Dictionary is a subclass of Set.
Subclasses are:
A dictionary holds pairs of association from names (usually called "keys") to objects ("values").Dictionaries are pretty quick at finding what the value is at a certain key. They are similar data structures like the hashes in Java and Perl. They are real work horses in Smalltalk programming.
a:= Dictionary new.
a at:'Thomas&' put:55565325.
a at:'Christoph' put:4784582.
a size. ->2
a at:'Thomas'- -> 55565325
a keyAtValue:4784582. ->Christoph
a removeKey:'Thomas'.