Skip to main content

Dictionary

11 commands. Toolkit id ooa.dictionary.

CommandWhat it does
Contains keyTrue when the dictionary has the key.
Contains valueTrue when any key of the dictionary holds this value.
Dictionary is emptyTrue when the dictionary has no keys.
GetRead the value for a key, or a default when the key is missing.
Get keysList all keys of a dictionary, in the order they were added.
Get sizeNumber of keys.
Get valuesList all values.
Key has valueTrue when the key exists and holds this value.
MergeCombine two dictionaries; for keys in both, keep the second value unless overwrite is off.
PutAdd or replace the value for a key.
RemoveRemove a key and its value from a dictionary; returns the dictionary without it.