enumerated
-

Swift enumerated(): Loop With Index and Element Together
Use enumerated() to loop over a Swift array with both index and element, build arrays of pairs, and avoid the offset-vs-index trap…

Use enumerated() to loop over a Swift array with both index and element, build arrays of pairs, and avoid the offset-vs-index trap…