Generic Structure

StrideThroughIterator

An iterator for a StrideThrough instance.

Declaration

@frozen struct StrideThroughIterator<Element> where Element : Strideable

Topics

Instance Methods

func next() -> Element?

Advances to the next element and returns it, or nil if no next element exists.

Relationships

Conforms To

See Also

Indices and Iterators

struct IteratorSequence

A sequence built around an iterator of type Base.

struct IndexingIterator

A type that iterates over a collection using its indices.

struct StrideToIterator

An iterator for a StrideTo instance.