SeedV / SeedLang

An embeddable and visualizable scripting engine for .Net and Unity.
https://seedv.github.io/SeedLang/
Apache License 2.0
9 stars 1 forks source link

Implement Dict #148

Closed codingpotato closed 2 years ago

codingpotato commented 2 years ago
dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}

print("dict['Name']:", dict['Name'])  # dict['Name']: Zara
print("dict['Age']:", dict['Age'])  # "dict['Age']: 7

dict['Age'] = 8
dict['School'] = "DPS School"

print("dict['Age']:", dict['Age'])  # dict['Age']: 8
print("dict['School']:", dict['School'])  # dict['School']: DPS School