[[ URL | name ]]A new syntax that allows you to specify the default array elements would be nice:
array resize [count, default]
default should be a shallow copy (i.e. if it's an array/hashmap, only the array/hashmap itself should be copied, not the values).
Example 1:
_arr = []; _arr resize [4, []]; //should give [[], [], [], []];
Example 2:
_arr = []; _element = [[1,2]]; _arr resize [2, _element]; _arr#0 pushBack 4; //should give: [ [[1,2],4], [[1,2]] ] _arr#1#0 pushBack 3; //should give: [ [[1,2,3],4], [[1,2,3]] ]