# ``Swift/Sequence``

## Topics

### Creating an Iterator

- ``Swift/Sequence/makeIterator()-4v0ms``
- ``Swift/Sequence/Iterator``
- ``Swift/Sequence/Element``

### Finding Elements

- ``Swift/Sequence/contains(_:)``
- ``Swift/Sequence/contains(where:)``
- ``Swift/Sequence/allSatisfy(_:)``
- ``Swift/Sequence/first(where:)``
- ``Swift/Sequence/min()``
- ``Swift/Sequence/min(by:)``
- ``Swift/Sequence/max()``
- ``Swift/Sequence/max(by:)``

### Selecting Elements

- ``Swift/Sequence/prefix(_:)``
- ``Swift/Sequence/prefix(while:)``
- ``Swift/Sequence/suffix(_:)``

### Excluding Elements

- ``Swift/Sequence/dropFirst(_:)``
- ``Swift/Sequence/dropLast(_:)``
- ``Swift/Sequence/drop(while:)``
- ``Swift/Sequence/filter(_:)-5y9d2``

### Transforming a Sequence

- ``Swift/Sequence/map(_:)``
- ``Swift/Sequence/compactMap(_:)``
- ``Swift/Sequence/flatMap(_:)-jo2y``
- ``Swift/Sequence/reduce(_:_:)``
- ``Swift/Sequence/reduce(into:_:)``
- ``Swift/Sequence/lazy``
- ``Swift/Sequence/flatMap(_:)-383uq``

### Iterating Over a Sequence's Elements

- ``Swift/Sequence/forEach(_:)``
- ``Swift/Sequence/enumerated()``
- ``Swift/Sequence/underestimatedCount-3afwr``

### Sorting Elements

- ``Swift/Sequence/sorted()``
- ``Swift/Sequence/sorted(by:)``
- ``Swift/Sequence/reversed()``

### Reordering a Sequence’s Elements

- ``Swift/Sequence/shuffled()``
- ``Swift/Sequence/shuffled(using:)``

### Splitting and Joining Elements

- ``Swift/Sequence/split(maxSplits:omittingEmptySubsequences:whereSeparator:)``
- ``Swift/Sequence/split(separator:maxSplits:omittingEmptySubsequences:)``
- ``Swift/Sequence/joined()``
- ``Swift/Sequence/joined(separator:)-5zjyj``
- ``Swift/Sequence/joined(separator:)-7w47r``

### Comparing Sequences

- ``Swift/Sequence/elementsEqual(_:)``
- ``Swift/Sequence/elementsEqual(_:by:)``
- ``Swift/Sequence/starts(with:)``
- ``Swift/Sequence/starts(with:by:)``
- ``Swift/Sequence/lexicographicallyPrecedes(_:)``
- ``Swift/Sequence/lexicographicallyPrecedes(_:by:)``

### Accessing Underlying Storage

- ``Swift/Sequence/withContiguousStorageIfAvailable(_:)-4don7``
