Array - insert item in the middle

I’m using UnityScript. I want to insert an item in the middle of an array (in the specific position).

var arr: Array = new Array(String);
arr.Push("A");
arr.Push("B");
arr.Push("D");
arr.Push("E");

arr.Insert(2, "C");

I’ve used “splice” method in ActionScript for that. How can I do it in Unity?

Never use Array, use 1 instead. Specifically, List.Insert. (Note that Unityscript’s syntax for generics uses an extra “.” compared to C#, such as List.<String> rather than List<String>. Also “import” instead of “using”, such as import System.Collections.Generic. But otherwise it works the same.)