Answers for "swift loop through 2 arrays at once"

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 "swift loop through 2 arrays at once"

Code answers related to "Swift"

Browse Popular Code Answers by Language