어쩌다보니 iOS 개발자
Set 본문
var bag: Set<String> = ["Candy", "Juice", "Gummy"]
bag.insert("Candy")
pritn(bag) // prints ["Candy", "Juice", "Gummy"]
중복된 내용을 insert하면 insert되지 않는다.
별다른..내용이 없네..
'iOS 개발 > 자료구조 및 알고리즘' 카테고리의 다른 글
Data Structures & Algorithms in Swift 시작 (0) | 2022.03.11 |
---|---|
Queues (0) | 2020.05.31 |
Dictionary (0) | 2020.05.27 |
리스트 List (Array List, Linked List) (0) | 2020.05.25 |
빅-오 표기법(Big-Oh Notation) (0) | 2020.05.25 |
Comments