반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Tkinter
- Apache
- Python
- numpy
- Excel
- matplotlib
- hive
- Google Spreadsheet
- 파이썬
- GIT
- list
- PANDAS
- Google Excel
- gas
- Redshift
- Kotlin
- string
- c#
- PySpark
- PostgreSQL
- SQL
- dataframe
- math
- Mac
- google apps script
- django
- Github
- array
- Java
Archives
- Today
- Total
목록When (1)
달나라 노트
Kotlin - when 구문
Original source = play.kotlinlang.org/byExample/01_introduction/01_Hello%20world Kotlin에선 흔히 쓰이는 swtich 구문 대신에 when 구문을 제공합니다. 이 구문을 처음 본다면 좀 어색할겁니다. fun case(x: Any) { when (x) { 1 -> println("One") "Apple" -> println("Fruit") is Long -> println("Data type is Long") is String -> println("Data type is String") !is String -> println("Data type is not String") else -> println("None") } } class emp..
Kotlin
2021. 3. 15. 03:24