# Collections

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

## Topics

### Arrays and Dictionaries

- ``Swift/Array``
- ``Swift/Dictionary``
- ``Swift/InlineArray``

### Sets

- ``Swift/Set``
- ``Swift/OptionSet-protocol``

### Ranges

Create a collection of all the values in a range by using the half-open (`..<`) and
closed (`...`) range operators.

- ``Swift/Comparable/..<(_:_:)``
- ``Swift/Range``
- ``Swift/RangeSet``
- ``Swift/Comparable/...(_:_:)``
- ``Swift/ClosedRange``

### Strides

Create a stride that steps over values between two boundaries using the `stride(from:to:by:)`
and `stride(from:through:by:)` functions.

- ``Swift/stride(from:to:by:)``
- ``Swift/stride(from:through:by:)``

### Special-Use Collections

These collections can store zero, one, or many of the same element.

- ``Swift/repeatElement(_:count:)``
- ``Swift/CollectionOfOne``
- ``Swift/EmptyCollection``
- ``Swift/KeyValuePairs``
- ``Swift/DictionaryLiteral``

### Dynamic Sequences

- ``Swift/sequence(first:next:)``
- ``Swift/sequence(state:next:)``

### Joint Iteration

- ``Swift/zip(_:_:)``

### Advanced Collection Topics

- <doc:sequence-and-collection-protocols>
- <doc:supporting-types>
- <doc:managed-buffers>
