Collection Types in Swift

  1. Array
  2. Dictionary
  3. Set

Array

The array is an ordered collection type. we can access the element by the index

Dictionary

Dictionary is an unordered collection.

Set

Set is also an unordered collection type. and it works on hashing

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store