![[Swift] continue, fallthrough-switch, where-for, enumerated, zip, indices](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FPPf8K%2FbtrI2YyYMX2%2FZUMz2db1mkcLz7FJIIBxq1%2Fimg.png)
Language/Swift2022. 8. 7. 23:11[Swift] continue, fallthrough-switch, where-for, enumerated, zip, indices
Continue : 반복문 내에서 그 지점을 건너뛰고 계속 진행한다는 의미입니다. outerloop: for i in 1...3 { innerloop: for j in 1...3 { if j == 3 { continue outerloop } print("i = \(i), j = \(j)") } } 레이블이 있는 반복문으로 innerloop이 아닌 outerloop으로 보냅니다. fallthrough가 있는 switch 문 : case 값이 switch 식과 일치하지 않아도 제어는 다음 case로 진행합니다. let dayOfWeek = 4 switch dayOfWeek { case 1: print("Sunday") case 2: print("Monday") case 3: print("Tuesday") c..