Answers for "using one loop in two array in swift"

0

swift loop through 2 arrays at once

let strArr1 = ["Some1", "Some2"]
let strArr2 = ["Somethingelse1", "Somethingelse2"]

for (e1, e2) in zip(strArr1, strArr2) {
    print("(e1) - (e2)")
}
Posted by: Guest on June-18-2021

Code answers related to "using one loop in two array in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language