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
- 리팩토링
- Protocol
- RxCocoa
- 리펙토링
- combine
- 애니메이션
- collectionview
- swift documentation
- Observable
- clean architecture
- uiscrollview
- tableView
- UICollectionView
- ios
- Refactoring
- swiftUI
- UITextView
- Clean Code
- map
- 클린 코드
- HIG
- MVVM
- rxswift
- Xcode
- ribs
- uitableview
- Human interface guide
- 스위프트
- SWIFT
- 리펙터링
Archives
- Today
- Total
목록Reduce(into:) (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 고차함수(Higher order function), Reduce 사용 방법 reduce, reduce(into:)
고차함수 (Higher order function) 인수로 함수를 받는다 or 함수를 결과로 반환한다 func myFunc(argFunc: Void -> ()) -> someFunc { } 고차함수를 사용하면 유연하고 반복을 줄일 수 있는 장점이 존재하여, Collection 관련 연산을 할때 되도록 고차함수 사용을 지향 swift의 대표적인 고차함수 인수로 함수를 받는 형태 대표적인 4가지 sorted func sorted(by areInIncreasingOrder: (Element, Element) throws -> Bool) rethrows -> [Element] filter func filter(_ isIncluded: (Element) throws -> Bool) rethrows -> [Elem..
iOS 기본 (swift)
2022. 6. 24. 21:10