본문 바로가기

조용한 담장

검색하기
조용한 담장
프로필사진 iosroid

  • 분류 전체보기 (125)
    • Flutter (43)
    • tips (10)
    • Dart (14)
    • Interesthing (6)
    • python (6)
    • kotlin (40)
    • Blogs I read this week (3)
    • Yocto (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
  • function
  • Android
  • 콜렉션
  • 플러터
  • variable
  • pushnamed
  • 함수
  • 클래스
  • Flutter
  • crawler
  • texttheme
  • map
  • Collection
  • textstyle
  • text
  • import
  • 웹크롤러
  • kotlin
  • 코틀린
  • 크롤러
  • ML
  • List
  • 파이썬
  • package
  • animation
  • set
  • python
  • Class
  • DART
  • 다트
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Iterator (1)

조용한 담장

코틀린(Kotlin) Collections : Iterators

코틀린(kotlin) 의 반복자(iterator) 에 대해 살펴보자. 원문 https://kotlinlang.org/docs/reference/iterators.html 을 보며 정리. iterator 는 Set 과 List 를 포함해 Iterable interface 의 상속자들로 부터 얻을 수 있으며 iterator() 함수 호출로 이 동작이 이루어 진다. 얻은 iterator 는 첫번째 element 를 가리키고 마지막 element 까지 이동할 수 있으며 마지막에 도달하면 다시 사용할 수 없으므로 새로 iterator 를 얻어야 한다. val numbers = listOf("one", "two", "three", "four") val numbersIterator = numbers.iterator(..

kotlin 2020. 1. 2. 18:10
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바