Swift, Set 톺아보기
최근에 알고리즘 공부 이야기를 하다가, Set에 대한 이야기가 나왔다. 중복 제거에 흔히 사용하는 Set은 어떻게 동작하는지, 또 Swift의 Set은 뭐가 다른지를 간단하게 적어보려 한다. Set? A set stores distinct values of the same type in a collection with no defined ordering. You can use a set instead of an array when the order of items isn’t important, or when you need to ensure that an item only appears once. 기본적으로 Set은 중복되지 않는 값을 저장하기 위한 Collection으로 정렬되지 않은 상태로 들어간다...
iOS/Swift
2023. 4. 18. 23:33
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- WWDC
- combine
- Provider
- Equatable
- 테크니컬라이팅
- lifecycle
- message
- Async
- writing helpful error message
- 리팩토링
- 개발자
- viewcontroller
- Swift
- document
- 개발문화
- 코드리뷰
- POP
- struct
- 기술블로그
- UIKit
- github
- techincal
- await
- IOS
- guri's dev
- flutter
- OOP
- getx
- 주저리주저리
- protocol
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함