mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-24 04:17:48 +00:00
* Finish sub-page documentation updates Some of these pages could use introductions, but the current state is ready for publication. * Add SPI yaml file for building docs
30 lines
876 B
Markdown
30 lines
876 B
Markdown
# Slicing and Splitting
|
|
|
|
Iterate over tuple pairs of adjacent elements, overlapping windows of a specified size, or lazily-calculated splits.
|
|
|
|
## Topics
|
|
|
|
### Adjacent Pairs
|
|
|
|
- ``Swift/Sequence/adjacentPairs()``
|
|
- ``Swift/Collection/adjacentPairs()``
|
|
|
|
### Windows
|
|
|
|
- ``Swift/Collection/windows(ofCount:)``
|
|
|
|
### Lazily Splitting a Collection
|
|
|
|
- ``Swift/LazySequenceProtocol/split(separator:maxSplits:omittingEmptySubsequences:)-4q4x8``
|
|
- ``Swift/LazySequenceProtocol/split(maxSplits:omittingEmptySubsequences:whereSeparator:)-68oqf``
|
|
- ``Swift/LazySequenceProtocol/split(separator:maxSplits:omittingEmptySubsequences:)-a46s``
|
|
- ``Swift/LazySequenceProtocol/split(maxSplits:omittingEmptySubsequences:whereSeparator:)-3rwee``
|
|
|
|
### Supporting Types
|
|
|
|
- ``AdjacentPairsSequence``
|
|
- ``AdjacentPairsCollection``
|
|
- ``WindowsOfCountCollection``
|
|
- ``SplitSequence``
|
|
- ``SplitCollection``
|