Help - Glossary - D - Dictionaries

A Dictionary is an UnOrderedCollection of key->value pairs that are called Associations.

Use Cmd-d on all of the following to inspect it:

| dict | "declare a variable"
dict := Dictionary new.
"assign a new Dictionary to the variable"
dict add: 1->'One'.
"add an Association to dict"
dict add: 'Two'->2.
"add an Associaton to dict"
dict add: 'Sum'->'One + 2 = Three-ish'.
"add an Associaton to dict"
dict inspect.
"inspect dict"

Glossary - D