Swift 06.컬렉션 set집합연산
// Set : 집합연산 let setA: Set = [1,2,3,7,4] let setB: Set = [5,3,2,8,9] //print(setA.union(setB)) // 현재 랜덤 값 let unionSet = setA.union(setB) print(unionSet.sorted()) //정렬해서 출력하기 print(setA.intersection(setB)) // 교집합 print(setA.subtracting(setB)) // 차집합 //Set의 멤버십과 동등 비교 let houseAnimals: Set = ["dog","cat"] let farmAnimals: Set = ["cow","chicken","sheep","dog","cat"] let cityAnimals: Set = ["duck"..