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
- Class
- import
- python
- ML
- DART
- Yocto
- map
- 플러터
- kotlin
- List
- 콜렉션
- textstyle
- 크롤러
- 다트
- 클래스
- animation
- pushnamed
- Flutter
- 파이썬
- Collection
- 함수
- function
- 웹크롤러
- set
- 코틀린
- variable
- Android
- package
- text
- crawler
Archives
- Today
- Total
목록맵 (1)
조용한 담장
코틀린(Kotlin) Collections : Map Specific Operations
코틀린의 collection 의 Map Specific Operations 에 대해 살펴보자. 원문 https://kotlinlang.org/docs/reference/map-operations.html 을 보며 정리. Retrieving keys and values get() [ ] getValue() getOrElse() getOrDefault() val numbersMap = mapOf("one" to 1, "two" to 2, "three" to 3) println(numbersMap.get("one")) // 1 println(numbersMap["one"]) // 1 println(numbersMap.getValue("two")) // 2 println(numbersMap.getOrDefaul..
kotlin
2020. 5. 8. 14:25