Skip to content

Instantly share code, notes, and snippets.

@vrat28
Created April 13, 2021 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrat28/8f9146a23085782b2fb0abec0c1dd2d4 to your computer and use it in GitHub Desktop.
Save vrat28/8f9146a23085782b2fb0abec0c1dd2d4 to your computer and use it in GitHub Desktop.
Fast enumeration Swift
let nums:[Int] = [1,2,3,4,5]
for num in nums {
// iterating throug the sequence
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment