0 votes
in Swift by

What are the collection types that are available in swift?

1 Answer

0 votes
by

There are three primary collection types that are available in swift for storing a collection of values. They are dictionaries, sets, and arrays

Arrays: Arrays is an ordered collection of values, which is stored in the same type of values in an ordered list.

Sets: Sets are an unordered collection of unique values, which are stored in a distinct value of the same type in a collection without any defined ordering.

Dictionaries: Dictionaries are an unordered collection of Key and value pair associations in an unordered manner.

...