Search the Community
Showing results for tags 'append'.
Hello! I am new to Unigine and I am currently going through the UnigineScript documentation. Something that struck me is that I can not see a big difference between appending to a map and just setting a value. The documentation seems to recommend using append when inserting new values, so I am wondering if they are different in some way, maybe something regrading performance? Or perhaps it is just standard convention. What I mean is what is the difference between doing: int mymap; mymap["foo"] = "bar"; and: int mymap; mymap.append("foo", "bar"); The first one seems to me like