Array Insert

Is there a function for inserting data into an array.

Other wise will this work?

Function Insert (InsertHere : int, MainArray : Array, InsetItem : GameObject){
var Main : Array = MainArray;
var Temp : Array;
var i = 0;
for(i = 0, i > InsertHere, ++i){
	Temp _= Main*;*_

* }*
* Temp.Add(InsertItem);*
* for(i = i+1, i > Main.Length, i++){*
Temp = Main*;*
* }*
* return(Main);*
}

Always use List instead of the Array class. Then you can just use Insert.

import System.Collections.Generic;

function Start () {
	var list = new List.<String>(["a", "b", "d"]);
	list.Insert (2, "c");
	for (item in list) print (item);
}