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

Peppo

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

Peppo

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

Combine combineLatest (1)
[Combine] Chapter5: Combining Operators

오늘은 이어서 Combining 연산자에 대해 공부해 보겠습니다. Prepending upstream에서 방출한 값 앞에 추가해서 보내는 용도로 사용합니다. prepend(Output) publisher에서 방출 되는 이벤트 이전에 값을 넣어줄 때 사용합니다. var subscriptions = Set() example(of: "prepend(output)") { let publisher = [3, 4].publisher publisher .prepend(1, 2) .sink(receiveValue: { print($0) }) .store(in: &subscriptions) } /* ——— Example of: prepend(output) ——— 1 2 3 4 */​ 아래처럼 음수 를 추가해도 순서대로 ..

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

티스토리툴바