반응형
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
- Github
- PySpark
- Redshift
- SQL
- Kotlin
- c#
- math
- google apps script
- matplotlib
- dataframe
- django
- Excel
- gas
- hive
- Apache
- Google Excel
- Java
- PostgreSQL
- GIT
- array
- Tkinter
- Mac
- list
- string
- Python
- PANDAS
- Google Spreadsheet
- numpy
- 파이썬
Archives
- Today
- Total
목록mutable (1)
달나라 노트
Kotlin - Set
Original source = play.kotlinlang.org/byExample/01_introduction/01_Hello%20world Kotlin에도 Set이라는 자료형이 있습니다. Python과 동일하게 순서가 없으며 중복값이 허용되지 않는 collection이죠. Kotlin에서는 두 가지 종류의 set이 존재합니다. Mutable Set= 변경(요소 추가 제거 등)이 가능한 set Set = 변경이 불가하고 읽기만 가능한 set List를 생성할 때는 내장 method를 사용해야하는데 어떤 Method를 사용하는지에 따라 Mutable set인지 read-only set인지가 결정됩니다. mutableSetOf() -> mutable set 생성 setOf() -> read-only se..
Kotlin
2021. 3. 15. 04:00