Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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)")
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #loop #arrays
ADD COMMENT
Topic
Name
9+7 =