...
- Maps override the dot operator, so
myMap.sizewill return null unless you have a value formap[size]. Usemap.size()ormap.@sizeinstead. - In map literals, all keys are interpreted as strings by default! If you want to use a variable or other literal as a key, use parentheses like so:
myMap = [(var1):val, (var2):val] - See the Maps user guide