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 |
Tags
- room
- notification
- recyclerview
- DataBinding
- Algorithm
- AppBarLayout
- 백준
- Android
- kotlin
- 알림
- 안드로이드
- hilt
- ViewModel
- HTTP
- BOJ
- CoordinatorLayout
- Navigation
- 알고리즘
- 코틀린
- CustomView
- CollapsingToolbarLayout
- onLayout
- onMeasure
- lifecycle
- Behavior
- View
- sqlite
- activity
- LiveData
- Coroutine
Archives
- Today
- Total
목록Filter (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