mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-24 04:17:48 +00:00
26 lines
522 B
Markdown
26 lines
522 B
Markdown
# Selecting Elements
|
|
|
|
Select elements at a particular interval, the first mapped value,
|
|
or iterate of elements with their indices.
|
|
|
|
## Topics
|
|
|
|
### Selecting Elements at an Interval
|
|
|
|
- ``Swift/Sequence/striding(by:)``
|
|
- ``Swift/Collection/striding(by:)``
|
|
|
|
### Conditionally Finding the First Mapped Value
|
|
|
|
- ``Swift/Sequence/firstNonNil(_:)``
|
|
|
|
### Iterating Over Elements with Their Indices
|
|
|
|
- ``Swift/Collection/indexed()``
|
|
|
|
### Supporting Types
|
|
|
|
- ``IndexedCollection``
|
|
- ``StridingSequence``
|
|
- ``StridingCollection``
|