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
- 파이썬
- DART
- import
- Class
- Android
- set
- pushnamed
- map
- Collection
- crawler
- 콜렉션
- package
- kotlin
- python
- function
- animation
- Yocto
- text
- 웹크롤러
- variable
- 플러터
- 함수
- 클래스
- 코틀린
- ML
- textstyle
- List
- 다트
- 크롤러
- Flutter
Archives
- Today
- Total
목록셋 (1)
조용한 담장
코틀린(Kotlin) Collections : Set Specific Operations
코틀린의 collection 의 Set Specific Operations 에 대해 살펴보자. 원문 https://kotlinlang.org/docs/reference/set-operations.html 을 보며 정리. 두개의 collection 을 합칠때는 union() 함수를 사용한다. infix a union b 로도 사용한다. intersect() 는 두 collection 에 모두 있는 element 를 찾는다. infix a intersect b subtract() 는 한쪽 collection 에만 있는 element 를 찾는다. infix a subtract b val numbers = setOf("one", "two", "three") println(numbers union setOf("f..
kotlin
2020. 5. 7. 18:30