Dictionary
11 commands. Toolkit id ooa.dictionary.
| Command | What it does |
|---|---|
| Contains key | True when the dictionary has the key. |
| Contains value | True when any key of the dictionary holds this value. |
| Dictionary is empty | True when the dictionary has no keys. |
| Get | Read the value for a key, or a default when the key is missing. |
| Get keys | List all keys of a dictionary, in the order they were added. |
| Get size | Number of keys. |
| Get values | List all values. |
| Key has value | True when the key exists and holds this value. |
| Merge | Combine two dictionaries; for keys in both, keep the second value unless overwrite is off. |
| Put | Add or replace the value for a key. |
| Remove | Remove a key and its value from a dictionary; returns the dictionary without it. |