Javascript Arrays (lists, etc)

I’ve started off by using arrays such as the below:

var textureArray : Texture[];

function Start() 
{
	    for (var i = 0; i < 5; i++)
	    {
	       textureArray  *= Resources.Load("KnifeTexture");*
  •     return;*
    
  •  }*
    

}
However, after more investigation it looks like generic lists are better to use for such things as an inventory.
I’m struggling to understand how to replicate the above as a generic list and to add something to remove the item from the array.
I’ve already looked through the following before anyone adds the link. I can’t see any working examples to explain what i need. http://wiki.unity3d.com/index.php?title=Which_Kind_Of_Array_Or_Collection_Should_I_Use%3F
Please could someone help me translate the above in to a generic list and a line of code to remove the item?
Many Thanks

Here is a sample script. When you press the spacebar, it uses RemoveAt() to remove the first item in the list (as long as there are items in the list).

import System.Collections.Generic;
#pragma strict

private var textureArray : List.<Texture> = new List.<Texture>();
 
function Start()  {
	for (var i = 0; i < 5; i++) {
	   textureArray.Add(Resources.Load("KnifeTexture") as Texture);
	}
	Debug.Log("Array now has "+textureArray.Count+" items");
 }
 
 function Update() {
	 if (Input.GetKeyDown(KeyCode.Space) && textureArray.Count > 0) {
	 	textureArray.RemoveAt(0);
	 	Debug.Log("Array now has "+textureArray.Count+" items");
	 }
 }