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
- onLayout
- onMeasure
- CollapsingToolbarLayout
- hilt
- Android
- LiveData
- Behavior
- kotlin
- CoordinatorLayout
- 알림
- BOJ
- ViewModel
- 안드로이드
- CustomView
- HTTP
- AppBarLayout
- room
- activity
- recyclerview
- lifecycle
- View
- DataBinding
- notification
- sqlite
- Coroutine
- Algorithm
- 코틀린
- 백준
- Navigation
- 알고리즘
Archives
- Today
- Total
목록Filtering Operation (1)
개발일지
Kotlin in A..Z - Collections (Filtering Operation)
drop N개의 숫자만큼 앞에서부터 버리고 나머지를 리턴한다. fun main() { val list = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) val drop = list.drop(5) println(list) println(drop) } [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [6, 7, 8, 9, 10] dropLast N개의 숫자만큼 뒤에서부터 버리고 나머지를 리턴한다. fun main() { val list = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) val drop = list.dropLast(5) println(list) println(drop) } [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [1, 2, ..
Kotlin (코틀린)
2020. 12. 2. 13:53