쑤야의 개발 블로그

고정 헤더 영역

글 제목

메뉴 레이어

쑤야의 개발 블로그

메뉴 리스트

  • 홈
  • 태그
  • 분류 전체보기 (98)
    • Algorithm (52)
    • CS (0)
    • AI (15)
      • PyTorch (4)
      • 논문 (3)
      • Open3D (7)
      • DL (0)
    • iOS (30)
      • RxSwift (4)
      • Combine (4)
      • Swift (1)
    • ETC (1)
      • 기타 (1)

검색 레이어

쑤야의 개발 블로그

검색 영역

컨텐츠 검색

flatMapLatest

  • Transforming Operators - Map, FlatMap, FlatMapLatest

    2023.03.17 by 쑤야.

Transforming Operators - Map, FlatMap, FlatMapLatest

Map transform the items emitted by an Observable by applying a function to each item Swift의 고차함수인 map과 동일하게 생각할 수 있다. 각 요소들에 대해서 클로저 연산을 수행해 방출하는 것이다. Observable .of(1, 2, 3) .map{ $0 * 2 } //2 4 6 방출 FlatMap transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single Observable FlatMap merges the emissions of resulting Observables, emitting..

iOS/RxSwift 2023. 3. 17. 22:39

추가 정보

인기글

최신글

페이징

이전
1
다음
TISTORY
쑤야의 개발 블로그 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바