Can we make it so
Thing.insert(me, index) is smart enough to add a new index if index is length+1?
For example, so we don't have to do this:
+ Code SnippetIF iInsert+1 <= Thing.length
Thing.insert(InsertMe, iInsert+1)
ELSE
Thing.insert(InsertMe) // Insert New, at end of array.
ENDIF
Heck, we could go a step further and have it extend the array as far as needed for the insert.
Example:
+ Code SnippetThing AS INTEGER[5]
// [ 0, 0, 0, 0, 0, 0 ]
Thing.insert(33, 9)
// Thing.length now = 9
// [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 33 ]