개발일지

[Android][Kotlin] return and jumps and This-expressions 본문

Android

[Android][Kotlin] return and jumps and This-expressions

강강강 2021. 6. 29. 19:12

Jump Expression

  • return 
  • break
  • continue

을 Label 과 함께 사용했을 때 어떻게 작용하나?

 

Label 정의 

→ label 을 정의할 때에는 name@

→ label 을 사용할 때에는 @name 

 

loop@ for (i in 1..100) {

//..

}

'Android' 카테고리의 다른 글

[Android][Kotlin] Scope Function, Collections  (0) 2021.06.29
[Android] Observer Pattern / Event Bus  (0) 2021.06.29
[Android] Scoped Storage  (0) 2021.06.29
[Android][Kotlin] SharedPreferences  (0) 2021.06.29
[Android][Kotlin] SwipeRefreshLayout  (0) 2021.06.29