swift. Type matching - 2. Type별
Type matching의 두번째입니다. 각 데이터 타입별로 값을 비교하는 방법입니다. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990// Tuples let point = CGPoint(x: 7, y: 0)switch (point.x, point.y) {case (0,0): print("On the origin!")case (0,_): print("x=0: on Y-axis!")case (_,0): print("y=0: on X-axis!")cas..
Mobile/iOS
2019. 3. 23. 19:37
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Gradle
- Spring
- nodejs
- CentOS
- android
- tomcat
- Java
- git
- enum
- Kotlin
- rxswift
- ios
- Codable
- Windows
- SWIFT
- cocoapods
- golang
- war
- go
- php
- Xcode
- Python
- intellij
- docker
- Linux
- ubuntu
- github
- windows10
- centos8
- MySQL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함