mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
9ead8781d4
Co-authored-by: Alex Martini <amartini@apple.com> Co-authored-by: Graham Lee <glee23@apple.com> Co-authored-by: Chris Adamson <cadamson@apple.com> Co-authored-by: Kirby Turner <kirby_turner@apple.com> Co-authored-by: Paris Pinkney <ppinkney@apple.com> Co-authored-by: Dave Spector <dspector@apple.com> Co-authored-by: Sofia Rodriguez Morales <sofia_rodriguez@apple.com> Co-authored-by: Ethan Kusters <ekusters@apple.com> Co-authored-by: Goli Mohammadi <g_mohammadi@apple.com> Co-authored-by: Adora Vaz <a_vaz@apple.com> Co-authored-by: David Rönnqvist <ronnqvist@apple.com> Co-authored-by: Nate Merseth Cook <natecook@apple.com> Co-authored-by: Susan Conant <susan_c@apple.com>
1.8 KiB
1.8 KiB
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:
- Fundamental data types such as
Swift/Int,Swift/Double, andSwift/String - Common data structures such as
Swift/Array,Swift/Dictionary, andSwift/Set - Global functions such as
Swift/print(_:separator:terminator:)andSwift/abs(_:) - Protocols, such as
Swift/CollectionandSwift/Equatable, that describe common abstractions. - Protocols, such as
Swift/CustomDebugStringConvertibleandSwift/CustomReflectable, that you use to customize operations that are available to all types. - Protocols, such as
Swift/OptionSet-protocol, that you use to provide implementations that would otherwise require boilerplate code.
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
Values and Collections
Tools for Your Types
Programming Tasks
- doc:input-and-output
- doc:debugging-and-reflection
- doc:macros
- doc:concurrency
- doc:key-path-expressions
- doc:manual-memory-management
- doc:type-casting-and-existential-types
- doc:c-interoperability
- doc:cxx-interoperability
- doc:operator-declarations