Hi,
There is no map class in BGT's core standard libraries. Can I freely assume that the map object is in array, a vector, or a dictionary?
If the map object is an array:
1. Resize it (I've seen that you've done that already)
2. To set all items in an array to something, do something like:
for (int i = 0; i <= map.length(); ++i)
map[i] = <value>;
To remove all values from the map array, do something like:
for (int i = 0; i <= map.length(); ++i)
map.remove_at (i);
If that fails, just reply to this thread with what happens and we'll try to come up with a different solution.
"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." — Charles Babbage.
My Github