Stuart Breckenridge

Extending Array to Enforce Unique Elements

Arrays store values of the same type in an unordered list, but they don't enforce uniqueness. This post looks at how to extend Swift's Array to ensure only unique items are added.