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.

Related questions

0 votes
asked Nov 8, 2022 in Swift by SakshiSharma
0 votes
0 votes
asked Nov 7, 2022 in Swift by Robin
...