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