title: Changing the Array Prototype in JavaScript
body: <p>I'm trying to change the Array Prototype and access columns as if they are rows therefor doing a custom matrix transposition.  I want to make sure that the access of each column doesn't require re-allocating and creating an entirely new object just to access a particular column. </p>
  
  <p>For example...</p>
  
  <pre><code>var mcol = new column([[0,1,2],[3,4,5],[6,7,8]]);
  alert(mcol[1]);
  </code></pre>
  
  <p>What I'm looking for is to read the column as if it was a row... (doing a 90 degree transform on the matrix)</p>
  
  <pre><code>mcol[1] = [1,4,7];
  </code></pre>
  
  <p>Any suggestions?  </p>