Chapter 2. Working with Commonly Used Data Structures
The Swift language is truly powerful, but a powerful language is nothing if it doesn't have a powerful standard library to accompany it. The Swift standard library defines a base layer of functionality that you can use for writing your applications, including fundamental data types, collection types, functions and methods, and a large number of protocols.
We're going to take a close look at the Swift standard library, specifically looking at support for collection types, with a very low level examination of arrays, dictionaries, sets, and tuples.
The topics covered in this chapter are as follows:
- Using the Swift standard library
- Implementing subscripting
- Understanding immutability
- Interoperability between Swift and Objective-C
- Swift protocol-oriented programming