Notepad 로고 이미지Notepad

menu-opener icon
  • 홈
  • 방명록
  • 관리자
Kotlin map 함수 - 리스트 값들 변경 포스팅 썸네일 이미지

Kotlin/Collections

Kotlin map 함수 - 리스트 값들 변경

1. map 함수 filter 함수가 리스트와 맵 같은 Collections 타입에서 조건에 만족하는 원소를 걸러내는(탐색하는) 함수 였다면 map 함수는 필요하다면 조건에 따라 일정한 연산을 해주고 싶을 경우 사용할 수 있다. Kotlin filter - 조건에 맞는 원소 검색 1. filter filter 함수는 Array, List, Set, Map 에서 사용할 수 있으며 특정 조건을 주면 해당 조건에 만족하는 원소들을 구할 수 있다. 해당 결과는 for문과 if식을 사용하면 똑같은 결과를 얻을 수도 있지 notepad96.tistory.com map함수의 결과 또한 filter처럼 for과 if문을 사용하면 똑같은 결과를 얻을 수도 있지만 map 함수를 사용함으로써 간단하게 한줄로도 작성이 가능해..

2020.11.25 게시됨

1
300x250

Profile

    Email: notepad1029@gmail.com

    Github: https://github.com/Notepad96

최근글

인기글

태그 클라우드

  • android corner
  • terraform azure
  • Kotlin
  • kotlin sort
  • android kotlin calendar
  • android border
  • android 테두리
  • android viewbinding
  • Android kotlin DB
  • android floating button
  • Android kotlin
  • kotlin for
  • kubernetes
  • android kotlin intent
  • android layout divid
  • C++
  • Kotlin android
  • Algorithm
  • android registerForActivityResult
  • android simpledateformat
  • android 이미지 불러오기
  • c++ stl
  • Terraform
  • 쿠버
  • c++ algorithm
  • Android
  • android 이중 리사이클러뷰
  • android api
  • android kotlin recyclerview
  • android kotlin room
Copyright . 베이스캠프 all rights reserved.
Designed by 베이스캠프
닫기 아이콘
사이드 프로필 배경이미지
블로그 이미지

Notepad96

IT, 코딩, 등 지식을 저장하고 편하게 볼 수 있도록 만든 메모장

  • 분류 전체보기 (195)
    • Android (86)
      • TIP (21)
    • Cloud (4)
    • C++ (49)
      • Algorithm (11)
      • Container (13)
      • STL (24)
    • Figma (1)
    • Kotlin (49)
      • Algorithm (8)
      • Syntax (13)
      • Collections (28)
    • Kubernetes (3)
    • Terraform (3)
Designed by 베이스캠프

티스토리툴바