insert - inserts a variable into an array
Arr.insert( Variable, Position )
See also
insert inserts or appends Variable to Arr at Position. Arr must be an array. Variable can be of any type. Position must be a positive integer, and specifies where Variable will be inserted.
Position is allowed to be -1, meaning append Variable to Arr.
If Position is greater than the size of Arr, Variable will be appended. arr = array 3 arr.insert( [[1,2][3,4]], 1 ) arr now containing four variables with arr[1] == [[1,2][3,4]]. arr.insert( "a very nice text", -1 ); arr[4] == "a very nice text" Read more about the array. |