Chapter 5. Choosing the Correct Data Structure
In the previous chapter, we covered Swift-specific features that make Swift fast. It is no less important to choose the correct data structure for a specific use case. In this chapter, we will talk about different data structures, their differences, and when to choose one instead of the other.
In this chapter, we will cover these topics:
An overview of data structures
The Swift standard library collections
Array, set, and dictionary
Speeding up with Accelerate and Surge