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

Peppo

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

Peppo

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

Swift Combine Chapter4 (1)
[Combine] Chapter4: Filtering Operators

이전 챕터와 비슷하게 filtering 연산자에 대해 공부해 보려 합니다. Filtering basics filter() Swift에 있는 filter와 같습니다. (조건문과 성립하는것만 걸러냄) var subscriptions = Set() example(of: "filter") { // 1. 1~10까지 이벤트 방출 let numbers = (1...10).publisher // 2. filter 연산자로, 3의 배수만 걸러냄 numbers .filter { $0.isMultiple(of: 3) } // isMultiple of의 지정된 숫자의 배수이면 true 반환 .sink(receiveValue: { num in print("\(num) 은 3의 배수") }) .store(in: &subscri..

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

Blog is powered by Tistory / Designed by Tistory

티스토리툴바