title: Iterate over two arrays simultaneously
body: <p>I am new to Swift. I have been doing Java programming. I have a scenario to code for in Swift.</p>
  
  <p>The following code is in Java. I need to code in Swift for the following scenario</p>
  
  <pre><code>// With String array - strArr1
  String strArr1[] = {"Some1","Some2"}
  
  String strArr2[] = {"Somethingelse1","Somethingelse2"}
  
  for( int i=0;i&lt; strArr1.length;i++){
      System.out.println(strArr1[i] + " - "+ strArr2[i]);
  }
  </code></pre>
  
  <p>I have a couple of arrays in swift</p>
  
  <pre><code>var strArr1: [String] = ["Some1","Some2"]
  var strArr2: [String] = ["Somethingelse1","Somethingelse2"]
  
  for data in strArr1{
      println(data)
  }
  
  for data in strArr2{
      println(data)
  }
  // I need to loop over in single for loop based on index.
  </code></pre>
  
  <p>Could you please provide your help on the syntaxes for looping over based on index</p>