what is the purpose of a swift continue code example
Example: swift continue
for i in 1...3 {
if i == 2 {
continue
}
else{
print(i)
}
}
//output: 1, 3
for i in 1...3 {
if i == 2 {
continue
}
else{
print(i)
}
}
//output: 1, 3