Fermat
Search
K

Dictionaries

You can create a dictionary with curly brackets {[key] to [value] ...} and assign it to a variable set [ID] to {[key] to [value] ...} . All keys must be text and unique.
To use with:
set a to {"Rome" to "Italy" "Florence" to "Italy"}
print a
Output:
> "Rome" → "Italy"
> "Florence" → "Italy"
Last modified 1yr ago