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
- 코틀린 코루틴의 정석
- 정보처리기사 실기 기출문제
- Java
- CloudWatch
- Kubernetes
- kotlin querydsl
- kotlin coroutine
- 정보처리기사실기 기출문제
- CKA 기출문제
- APM
- AI
- docker
- 오블완
- PETERICA
- Elasticsearch
- mysql 튜닝
- Linux
- 티스토리챌린지
- Pinpoint
- 기록으로 실력을 쌓자
- golang
- Spring
- aws
- kotlin
- minikube
- go
- CKA
- 공부
- AWS EKS
- tucker의 go 언어 프로그래밍
Archives
- Today
- Total
목록kotlin list to set (1)
피터의 개발이야기

ㅁ 들어가며ㅇ Kotlin에서 List는 순서가 있는 요소들의 컬렉션이다. ㅇ 이 글에서는 List의 기본적인 사용법과 함께 자주 사용되는 연산들을 살펴본다.ㅁ List 생성하기val immutableList = listOf(1, 2, 3, 4, 5)val mutableList = mutableListOf("a", "b", "c")ㅁ List 요소 접근하기val firstElement = immutableList[0]val lastElement = immutableList.last()val firstElement = immutableList[0] val lastElement = immutableList.last()ㅁ List 순회하기for (item in immutableList) { printl..
Programming/Kotlin
2024. 7. 12. 10:10