Created
February 28, 2018 08:55
-
-
Save mwrites/345693ede5b0aabd9a075bdbce66a511 to your computer and use it in GitHub Desktop.
Enumerating Two Collections In Parallel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (a, b) in zip(A.enumerated(), B.enumerated()) { | |
print("a[\(a.offset)]: \(a.element)") | |
print("b[\(b.offset)]: \(b.element)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment