Collection Types in Swift
There are three types of collections in swift
The array is an ordered collection type. we can access the element by the index
Dictionary is an unordered collection.
It’s a key-value data type. We can access the value by using the unique key.
Set is also an unordered collection type. and it works on hashing