title: Julia: how to iterate row by row in a multidimensional array
body: <p>Say that I have 4x4 multidimensional array A:</p>
  
  <pre><code>A = collect(reshape(1:16, 4, 4))
  4×4 Array{Int64,2}:
   1  5   9  13
   2  6  10  14
   3  7  11  15
   4  8  12  16
  </code></pre>
  
  <p>and I want to iterate row by row (i.e. <code>[1, 5, 9, 13]</code> first, then <code>[2, 6, 10, 14]</code>, then ...).</p>
  
  <p>How do I do it? For now I have come up with the following:</p>
  
  <pre><code>`for row in 1:size(A, 1)
      println(A[row, :])
      # do something
  end`
  </code></pre>
  
  <p>but I was wondering if there was a more "pythonic" way of doing it: kind of <code>for line in A: for element in line: ...</code>.</p>
  
  <p>I also know about CartesianRange, but I would like to have an array-like row to work with at each iteration.</p>