An overview of data structures
Every programming language has built-in primitive data types, such as integer, double, character, string, and Boolean. The Swift programing language has some more complex types, such as enumeration, optionals, and tuples. By composing primitive types, we can build more complex data types. To compose them, we use structures and classes.
A data structure is a way of organizing data in a specific way so that it can be used efficiently for a specific task, for example, searching, checking for existence, and a quick update of values.