일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- UI그리기
- 알고리즘
- #IntrinsicContentSize
- Multiple Window #iPad
- deinitialize #스위프트 #Swift #ARC #메모리 #memory #closure #클로저 #클로저 메모리 #weak #weak self #self #unowned self #memoryleak #메모리릭
- Struct #Value Type #Value #Reference #Reference Type #Class #Structure #memory
- Hugging priority
- COW #Copy On Write #Swift #Optimization
- AR #Augmented Reality
- UIKit기본
- async #await #swift Concurrency #concurrency #actor #concurreny 원리 #concurreny 개념
- Multitasking #life Cycle
- Swift #try #catch #Swift Concurrency 에러처리 #에러처리 #Error #Error Handling
- IntrinsicContentSize #UIKit #Swift #hugging priority #conflict resistance #Ambiguous
- ARC #weak #unowned #Strong Reference #Strong Reference Cycle #순환참조 #Swift #메모리 #memoryLeak #메모리릭
- ARC #unowned #weak #weak unowned차이 #순환참조 #Strong Reference Cycle #Swift #메모리 #memoryLeak
- Apple # HIG #iOS15 #iOS14 #Human #Interface #Guidelines #Apple developer # Apple human interface guidelines
- Swift#flatMap#map#Monad#함수형 프로그래밍#Optional
- Autolayout 충돌
- OS #Page #Page Table #Virtual Memory
- swift concurrency #swift #concurrency #async #async let #swift parallel #병렬실행 #동시실행 #이미지 동시 다운로드 #iOS #UIKit
- Autolayout #
- notification #
- Compression resistance
- Swift #UIkit #ARC #Reference count #memory leak #memory #leak #애플 #iOS
- Multitasking #
- 거의최단경로 #5719번반례 # 백준반례 #백준플4 #플레4
- ARC #Swift #Memory leak #weak self #unowned self #weak self 이유 #reference count #순환 참조 #retain cycle #delayed #deinitialization #지연 해제 #delayed deinitialization
- Swift Concurrency #동시성 프로그래밍 #async #await #async let #group Task #병렬 실행 #동시 다운로드
- 백준#5719번#
Archives
- Today
- Total
목록Swift#flatMap#map#Monad#함수형 프로그래밍#Optional (1)
도니의 iOS 프로그래밍 세상
[Swift] flatMap, map의 차이 - Monad로의 여정(1)
함수형 프로그래밍에서 사용되는 말인 Monad에 대해서 설명하기 전, map 과 flatMap 의 차이점에 대해서 공부해보자 map과 flatMap은 차이점은 무엇일까? 가장 기본적인 차이점 map의 경우 데이터를 변환하는데 사용된다 let cast = ["Vivien", "Marlon", "Kim", "Karl"] let lowercaseNames = cast.map { $0.lowercased() } // 'lowercaseNames' == ["vivien", "marlon", "kim", "karl"] flatMap은 2차원 이상의 배열들을 1차원 배열로 변환한다 let numbers = [1, 2, 3, 4] let mapped = numbers.map { Array(repeatin..
Swift
2023. 12. 15. 23:12