title: A data structure for strings allowing efficient extraction of blocks?
body: <p>I am searching for dual use arrays (if there are any !)</p>
  
  <p>for example</p>
  
  <pre><code>obj[1] = "Tea";
  obj[2] = "Coffee";
  obj[3] = "Cola";
  </code></pre>
  
  <p>The array should be accessible in such a way that no matter what the length of each string in the array is, the result should be pirnted out as </p>
  
  <pre><code>obj(5)(1) = "TeaCo" 
  obj(5)(2) = "ffeeC" 
  obj(5)(2) = "ola"
  </code></pre>
  
  <p>I know that we could write a code that loops through array and print out results as above, but is there a data structure that can directly do that ?</p>