title: Iterate through a list of numpy arrays
body: <p>I have a list of multidimensional arrays, and need to access each of these arrays and operate on them.
  Mock up data:</p>
  
  <pre><code>list_of_arrays = map(lambda x: x*np.random.rand(2,2), range(4))
  list_of_arrays
  [array([[ 0.,  0.],[ 0.,  0.]]), array([[ 0.39881669,  0.65894242],[ 0.10857551,   0.53317832]]), array([[ 1.39833735,  0.1097232 ],[ 1.89622798,  1.79167888]]), array([[ 1.98242087,  0.3287465 ],[ 1.2449321 ,  2.27102359]])]
  </code></pre>
  
  <p><strong>My questions are:</strong> </p>
  
  <p>1- How could I iterate through <code>list_of_arrays</code>, so every iteration returns each of the individual arrays?<br>
  e.g. iteration 1 returns <code>list_of_arrays[0]</code>...last iteration returns <code>list_of_arrays[-1]</code></p>
  
  <p>2- How could I use the result of each iteration as input for another function?</p>
  
  <p>I'm fairly new to Python. My first idea has been to define the function inside a for-loop, but I'm unclear how to implement this:</p>
  
  <pre><code>for i in list_of_array:
      def do_something():
  </code></pre>
  
  <p>I was wondering if anybody had a good solution for this.</p>