ABSTRACT

Most programming languages come with some form of the standard library that includes built-in, commonly used items of functionality, and Swift is no exception. The Swift library provides higher-level functionality with powerful tools that developers can depend upon across all the platforms that Swift supports. The Swift library provides higher-level functionality with powerful tools that developers can depend upon across all the platforms that Swift supports. An array is a general-purpose, generic structure used for storing an ordered collection of items. Swift defines arrays using protocols. Each of these protocols allows more capabilities on the array. The Swift Array is called a generic collection because it can operate with any type. In fact, most of the Swift standard library is built with generic code. Random access is another trait that data structures can claim if they can administer element retrieval in a constant amount of time.