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 | 31 |
Tags
- Human interface guide
- 클린 코드
- 리펙터링
- UICollectionView
- SWIFT
- Protocol
- UITextView
- 애니메이션
- uiscrollview
- Xcode
- RxCocoa
- map
- ios
- collectionview
- MVVM
- Observable
- rxswift
- swiftUI
- 스위프트
- Refactoring
- 리펙토링
- uitableview
- 리팩토링
- Clean Code
- HIG
- swift documentation
- ribs
- combine
- clean architecture
- tableView
Archives
- Today
- Total
목록2024/01/16 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] Optional의 map, flatMap 함수
Optional에서의 map, flatMap 개념 보통 map, flatMap은 Collection Type에서 사용하지만, Optional 내부를 보면 함수로 map, flatMap이 존재 @frozen public enum Optional : ExpressibleByNilLiteral { case none case some(Wrapped) @inlinable public func map(_ transform: (Wrapped) throws -> U) rethrows -> U? @inlinable public func flatMap(_ transform: (Wrapped) throws -> U?) rethrows -> U? } map 개념 Optional 타입에 nil이 아닌 값이라면, Optional..
iOS 응용 (swift)
2024. 1. 16. 01:38