Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- HIG
- Observable
- swiftUI
- 스위프트
- UITextView
- map
- clean architecture
- Xcode
- 클린 코드
- RxCocoa
- tableView
- 리펙터링
- Human interface guide
- rxswift
- collectionview
- 리펙토링
- MVVM
- UICollectionView
- Clean Code
- ribs
- Refactoring
- uiscrollview
- 애니메이션
- uitableview
- swift documentation
- ios
- 리팩토링
- combine
- SWIFT
- Protocol
Archives
- Today
- Total
목록infix (1)
김종권의 iOS 앱 개발 알아가기
[swift] 17. 연산자 재정의
1. precedencegroup 설정 precedencegroup ForwardApplication { associativity: left // 왼쪽 연관성: 왼쪽에서 오른쪽으로 연산되게끔 // lowerThan: AdditionPrecedence // 의미: 덧셈을 먼저 처리 // higherThan: CastingPrecedence } infix operator |>: ForwardApplication public func |> (x: A, f: (A) -> B) -> B { return f(x) } precedencegroup 스위프트는 그룹을 설정하여 우선순위를 정하기 때문에, 새로운 연산자에 대한 우선순위를 결정하기 위해 precedencegroup을 설정해야 함 infix infix: 1+1..
swift 5 문법
2020. 9. 27. 02:16