Swift Standard Library
Overview
The Swift standard library defines a base layer of functionality for writing Swift programs, including:
Common data structures such as
Array,Dictionary, andSetGlobal functions such as
print(_:andseparator: terminator:) abs(_:)Protocols, such as
CollectionandEquatable, that describe common abstractions.Protocols, such as
CustomandDebug String Convertible Custom, that you use to customize operations that are available to all types.Reflectable Protocols, such as
Option, that you use to provide implementations that would otherwise require boilerplate code.Set
Note
Experiment with Swift standard library types and learn high-level concepts using visualizations and practical examples. Learn how the Swift standard library uses protocols and generics to express powerful constraints. Download the playground below to get started.
Topics
See Also
structInt structDouble structString structArray structDictionary