title: Extract a portion of two-dimensional array in Swift
body: <p>I am trying to learn how to deal with two dimensional arrays in Swift. Here is a two-dim array I am working on:</p>
  
  <pre><code>var Image = [[1,2,3],[4,5,6],[7,8,9]]
  </code></pre>
  
  <p>If I want to extract only first two rows and first columns (2x2), how would I do that with Swift's range operator (...). I tried the following:</p>
  
  <pre><code>let extractedImage = Image[0...1][0...1]
  </code></pre>
  
  <p>It did not work. It rather gave me first two rows and columns were printed fully. How can I deal with this problem without using for loop? </p>