title: for-each loop in Mule DataWeave 2.0
body: <p>Does Dataweave 2.0 has for loop?
  For example I have the following code</p>
  
  <pre><code>%dw 2.0
  var value = 0
  var myArray=[1,2,3,4,5]
  output application/json
  ---
  {
      value : myArray[3]
  }
  </code></pre>
  
  <p>the variable value will have a value of 4 in this case.
  Is it possible to have some kind of for-each loop and go through the whole array?</p>