본문 바로가기 메뉴 바로가기

Peppo

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Peppo

검색하기 폼
  • 분류 전체보기 (221)
    • Story (13)
    • iOS (143)
      • Error (11)
    • 알고리즘 (43)
    • ETC (7)
    • React-Native (0)
    • CS (Computer science) (3)
  • 방명록

Swift Combine Transforming operators (1)
[Combine] Chapter 3: Transforming Operators

각 Operator는 publisher를 반환합니다. publisher는 upstream 이벤트를 받고 조작합니다. 그러고나서, 조작된 이벤트들을 사용자에게 downstream으로 보냅니다. Collecting Values collect() 각각의 value들을 한 배열안에 넣습니다. 1. collect() 안썼을시 var subscriptions = Set() example(of: "collect") { ["A", "B", "C", "D", "E"].publisher .sink(receiveCompletion: { print($0) }, receiveValue: { print($0) }) .store(in: &subscriptions) } /* ——— Example of: collect ——— A B ..

iOS 2022. 10. 28. 00:06
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • Peppo's Github
TAG
  • Swift init
  • Swift RIBs
  • Swift 프로그래머스
  • Swift Leetcode
  • 2023년 회고
  • iOS error
  • Swift joined
  • swift (programmers)
  • RIBs tutorial
  • swift protocol
  • CS 네트워크
  • Swift ModernRIBs
  • RTCCameraVideoCapturer
  • Swift 내림차순
  • Swift 프로퍼티
  • Swift joined()
  • swift reduce
  • removeLast()
  • Swift inout
  • 원티드 프리온보딩
  • swift programmers
  • Class
  • Combine: Asynchronous Programming with Swift
  • Swift final
  • Swift 알고리즘
  • Swift
  • swift 고차함수
  • ios
  • swift property
  • Swift Error Handling
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바