Answers for "what is the purpose of a swift continue"

1

swift continue

for i in 1...3 {
    if i == 2 {
        continue
    }
    else{
      print(i)
    }
}
//output: 1, 3
Posted by: Guest on October-20-2020

Code answers related to "what is the purpose of a swift continue"

Code answers related to "Swift"

Browse Popular Code Answers by Language