Solve complex problems and write high-performance, readable code.
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(_:and abs(_:)separator: terminator:) 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
Explore the Standard Library
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.