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
- variable
- import
- 코틀린
- 파이썬
- 크롤러
- set
- Android
- function
- python
- List
- kotlin
- textstyle
- crawler
- text
- ML
- DART
- Collection
- map
- package
- 클래스
- 플러터
- 다트
- animation
- 콜렉션
- 함수
- Flutter
- Yocto
- Class
- pushnamed
- 웹크롤러
Archives
- Today
- Total
목록When (1)
조용한 담장
[코틀린] Kotlin : Control Flow
코틀린(kotlin) 의 control flow 부분을 살펴보자. if, when, for, while 원문 https://kotlinlang.org/docs/reference/control-flow.html 을 보며 정리. If Expression grammar for if if is an expression. kotlin 에서 if 는 control flow 를 위한 키워드일 뿐 아니라 표현식이 이기도 하다. 어떤 동작의 결과를 리턴하는 표현식으로써도 동작한다는 의미이다. val max = if (a > b) a else b if () 의 결과에 따라 max 는 a 나 b 의 값을 가진다. val max = if (a > b) { print("Choose a") a } else { print("Cho..
kotlin
2019. 12. 31. 16:07