Exploring Swift Collections: In-Depth Guide to Arrays, Sets, and Dictionaries
In Swift there are 3 primary types of collections to store your data in a structured way, namely: In this article we aim to give you an overview of each. Specifically we want to show how they’re declared, illustrate the most common operations of each, provide comparisons between them where applicable and highlight the various performance considerations.