본문 바로가기

조용한 담장

검색하기
조용한 담장
프로필사진 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
  • 다트
  • 웹크롤러
  • 파이썬
  • Class
  • texttheme
  • List
  • 크롤러
  • Collection
  • import
  • text
  • python
  • 플러터
  • package
  • 클래스
  • function
  • Android
  • DART
  • 코틀린
  • variable
  • 콜렉션
  • textstyle
  • animation
  • ML
  • 함수
  • kotlin
  • crawler
  • Flutter
  • map
  • pushnamed
  • set
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록필터링 (1)

조용한 담장

코틀린(Kotlin) Collections : Filtering

코틀린의 collection 의 transformation 에 대해 살펴보자. 원문 https://kotlinlang.org/docs/reference/collection-filtering.html 을 보며 정리. 필터링은 전달된 람다함수가 collection 의 element 을 가지고 도출한 boolean 결과값이 true 이면 해당 element 값을 사용하고 false 이면 버린다. standard library 는 filtering 을 위한 많은 확장 함수들을 하나의 호출을 통해 사용될수 있도록 제공한다. 이 함수들은 원본 collection 을 변경시키지 않고 보존하므로 mutable 과 read-only collection 모두에 사용이 가능하다. filtering 의 결과는 변수에 저장하거..

kotlin 2020. 3. 24. 16:40
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바