일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- MVP Architecture
- Kotlin FCM
- Android Navigation
- OkHttp Interceptor
- android recyclerview
- 프로그래머스 알고리즘
- 안드로이드 갤러리 접근
- Kotlin
- 안드로이드
- Java
- Android ProgressBar
- Android DataBinding
- Android Interceptor
- scope function
- Android 12 대응
- Android ViewPager2
- 안드로이드 카카오 로그인
- WebView
- 66챌린지
- Android
- Android Jetpack
- Android 12
- 알고리즘 자바
- Android WebView
- 영어공부
- 영어독립365
- DataBinding
- 안드로이드 fcm
- 카카오 알고리즘
- 습관만들기
- Today
- Total
목록scope function (2)
Developer Geek

let 범위 함수 범위함수란 범위함수란 영어로 Scope Funtion으로 불린다. 함수명 Scope Funtion에서 알 수 있듯이 이 범위 내에 함수를 만드는 것이다. 범위(Scope)를 만들어서 그 안에서 람다식을 이용해 로직을 구현할 수 있다. let 범위함수 fun T.let(block: (T) -> R): R let 범위함수에 대해서 Kotlin 공식 문서에서는 다음과 같이 설명하고 있다. The context object is available as an argument(it). The return value is the lambda result. 공식 문서에서는 let 함수에 간단하게 설명되어있다. 자기 자신을 argument(it) 파라미터로 받는 코드 블록을 생성하고 코드 블록 안에서의..

apply 범위함수 범위함수란 범위함수란 영어로 Scope Funtion으로 불린다. 함수명 Scope Funtion에서 알 수 있듯이 이 범위 내에 함수를 만드는 것이다. 범위(Scope)를 만들어서 그 안에서 람다식을 이용해 로직을 구현할 수 있다. apply 범위함수란 fun T.apply(block: T.() -> Unit): T apply 범위함수에 대해서 Kotlin 공식 문서에서는 다음과 같이 설명하고 있다. The context object is available as a receiver(this). The return value is the object itself. Use apply for code blocks that don't return a value and mainly opera..