Swift Standard Library
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, and Set
Global functions such as print(_:separator:terminator:) and abs(_:)
Protocols, such as Collection and Equatable, that describe common abstractions.
Protocols, such as CustomDebugStringConvertible and CustomReflectable, that you use to customize operations that are available to all types.
Protocols, such as OptionSet, that you use to provide implementations that would otherwise require boilerplate code.
Topics
Values and Collections
Tools for Your Types
Programming Tasks
Input and OutputDebugging and ReflectionMacrosConcurrencyKey-Path ExpressionsManual Memory ManagementType Casting and Existential TypesC InteroperabilityOperator Declarations