Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Dictionary
Last updated at 2:38 pm UTC on 29 January 2017
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'.


Note

JsonObject is a subclass of Dictionary.