How to create array of unique object list in Swift

后端 未结 11 2116
猫巷女王i
猫巷女王i 2020-11-27 05:20

How can we create unique object list in Swift language like NSSet & NSMutableSet in Objective-C.

11条回答
  •  面向向阳花
    2020-11-27 05:41

    I've built an extensive Set type similar to the built-in Array and Dictionary - here are blog posts one and two and a GitHub repository:

    • Creating a Set Type in Swift
    • Set Type Follow-up
    • SwiftSets on GitHub

提交回复
热议问题