Suppose I have two arrays:
val ar1 = Array[String](\"1\", \"2\", \"3\") val ar2 = Array[String](\"1\", \"2\", \"3\", \"4\")
Now for each e
I did not had the opportunity to test it, but this should do the trick:
ar1.zip(ar2).foreach(x => println(x._1 + x._2))