---
title: Collections
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/collections
---

# Collections

Store and organize data using arrays, dictionaries, sets, and other data structures.

## Topics

### Arrays and Dictionaries

- [Array](swift/array.md)
- [Dictionary](swift/dictionary.md)
- [InlineArray](swift/inlinearray.md)

### Sets

- [Set](swift/set.md)
- [OptionSet](swift/optionset.md)

### Ranges

- [..<(_:_:)](swift/comparable/'.._(_:_:).md)
- [Range](swift/range.md)
- [RangeSet](swift/rangeset.md)
- [...(_:_:)](swift/comparable/'...(_:_:).md)
- [ClosedRange](swift/closedrange.md)

### Strides

- [stride(from:to:by:)](swift/stride(from:to:by:).md)
- [stride(from:through:by:)](swift/stride(from:through:by:).md)

### Special-Use Collections

- [repeatElement(_:count:)](swift/repeatelement(_:count:).md)
- [CollectionOfOne](swift/collectionofone.md)
- [EmptyCollection](swift/emptycollection.md)
- [KeyValuePairs](swift/keyvaluepairs.md)
- [DictionaryLiteral](swift/dictionaryliteral.md)

### Dynamic Sequences

- [sequence(first:next:)](swift/sequence(first:next:).md)
- [sequence(state:next:)](swift/sequence(state:next:).md)

### Joint Iteration

- [zip(_:_:)](swift/zip(_:_:).md)

### Advanced Collection Topics

- [Sequence and Collection Protocols](swift/sequence-and-collection-protocols.md)
- [Supporting Types](swift/supporting-types.md)
- [Managed Buffers](swift/managed-buffers.md)

## See Also

### Values and Collections

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