Notice
Recent Posts
Recent Comments
반응형
목록2017/06/30 (1)
오늘도 공부
array union, intersection 관련내용
es, Swift has the Set class.let array1 = ["a", "b", "c"] let array2 = ["a", "b", "d"] let set1:Set = Set(array1) let set2:Set = Set(array2)Swift 3.0+ can do operations on sets as:firstSet.union(secondSet)// Union of two sets firstSet.intersection(secondSet)// Intersection of two sets firstSet.symmetricDifference(secondSet)// exclusiveOrSwift 2.0 can calculate on array arguments:set1.union(array2..
IOS
2017. 6. 30. 18:05
