안녕하세요! 오늘은 .compactMapValues에 대해서 소개해 드리려고 합니다~! 찾아보니 정말 편리하다고 느꼈는데요. 왜 그런지 같이 살펴보시죠~! 예시를 들면서 소개해 드리면 좋을거 같습니다. 아래 코드를 보시죠 let d: [String: String?] = ["a": "1", "b": nil, "c": "3"] let r1 = d.filter { $0.value != nil }.mapValues { $0! } let r2 = d.reduce(into: [String: String]()) { (result, item) in result[item.key] = item.value } // r1 == r2 == ["a": "1", "c": "3"] Dictionary 값에 문자, nil 값이 같이 ..
Sungwon Park's application adheres to the following policy to protect user privacy and rights in accordance with the Personal Information Protection Act. We will notify users of any changes to our personal information handling policy through the app interface and website announcements. Purpose of Processing Personal Information: This application is a standalone application that does not collect ..