Type X{}
maps string keys to values of X
.
let dict = {"a": 13, "b": 20}
# type: i32{}
# maps "a" to 13 and "b" to 20
🔥 Access might fail, if a key is not present. That's why optionals X?
are returned and need to be unwrapped before usage (see error handling):
for value in dict["a"]
print(value)