Instance Methodswift-algorithms 1.2.1Algorithms
striding(by:)
Stride.swift:73func striding(by step: Int) -> StridingSequence<Base>
func striding(by step: Int) -> StridingSequence<Base>
where Base:Sequence
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct StridingSequence<Base> where Base : Sequence
A wrapper that strides over a base sequence.
@frozen struct Int
A signed integer value type.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
func makeIterator() -> Iterator
struct Iterator
An iterator over a StridingSequence
instance.