Make unique NSMutableArray or NSMutableSet

后端 未结 4 1896
挽巷
挽巷 2020-12-31 04:35

I\'m currently enumerating through NSMutableArray (or NSMutableSet) elements to find duplicates and remove them.

For example, if array/set

4条回答
  •  一整个雨季
    2020-12-31 05:24

    A set never contains duplicate elements, so simply creating an NSMutableSet should guarantee uniqueness of values.

提交回复
热议问题