---
title: Swift Standard Library
framework: swift
role: collectionGroup
path: swift/swift-standard-library
---

# Swift Standard Library

Solve complex problems and write high-performance, readable code.

## Overview

Overview The Swift standard library defines a base layer of functionality for writing Swift programs, including: Fundamental data types such as Int, Double, and String 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. 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. Swift Standard Library.playground

## Topics

### Values and Collections

- [Numbers and Basic Values](swift/numbers-and-basic-values.md)
- [Strings and Text](swift/strings-and-text.md)
- [Collections](swift/collections.md)
- [Time](swift/time-and-duration.md)

### Tools for Your Types

- [Basic Behaviors](swift/basic-behaviors.md)
- [Encoding, Decoding, and Serialization](swift/encoding-decoding-and-serialization.md)
- [Initialization with Literals](swift/initialization-with-literals.md)

### Programming Tasks

- [Input and Output](swift/input-and-output.md)
- [Debugging and Reflection](swift/debugging-and-reflection.md)
- [Macros](swift/macros.md)
- [Concurrency](swift/concurrency.md)
- [Key-Path Expressions](swift/key-path-expressions.md)
- [Manual Memory Management](swift/manual-memory-management.md)
- [Type Casting and Existential Types](swift/type-casting-and-existential-types.md)
- [C Interoperability](swift/c-interoperability.md)
- [Operator Declarations](swift/operator-declarations.md)

### Deprecated

- [Deprecated](swift/deprecated.md)

## See Also

### Standard Library

- [Int](swift/int.md)
- [Double](swift/double.md)
- [String](swift/string.md)
- [Array](swift/array.md)
- [Dictionary](swift/dictionary.md)
