title: Loop over multiple List simultaneously in Groovy
body: <p>I like to loop over multiple list simultaneously as below:</p>
  
  <pre><code>def p = ["A", "B", "C"]
  def q = ["d", "f", "g"]
  for (x,y in p,q) {
  
     println x
     println y
  
  }
  </code></pre>
  
  <p>I can do something like below:</p>
  
  <pre><code>def p = ["A", "B", "C"]
  def q = ["d", "f", "g"]
  for (i=0; i&lt;q.size(); i++) {
  
     println p[i]
     println q[i]
  
  }
  </code></pre>
  
  <p>but I would love to know the solution in previous format. Any idea how to achieve the same in groovy?</p>