나름 프로그래밍?/Swift
Range Operator
-Dong-
2015. 5. 7. 16:30
1. Close Range Operator
for문 같은거 쓸때 ... 붙이는 것 처럼 영역을 지정해 줄수 있는 연산자..
1...5 -> 1,2,3,4,5
2. Half Open Range Operator
1..<5 -> 1,2,3,4
간단하게 범위를 지정할때 편할듯?