Fermat
Search
K

Indexing

You can access a value in a dictionary by specifying the key {[key] to [value]}[key].
Input:
set fruits to {"Apple" to 10 "Melon" to 5}
print fruits["Apple"]
set price to fruits["Apple"]
print price
Output:
> 10
> 10