How can I translate this loop (in Java) to Scala?
for(int i = 0, j = 0; i < 10; i++, j++) {
//Other code
}
My end goal is to loop through two lists at the same time. I want to get both elements at the same time at each index in the iteration.
for(a <- list1, b <- list2) // doesn't work
for(a <- list1; b <- list2) // Gives me the cross product