Generic Structure

StrideToIterator

An iterator for a StrideTo instance.

Declaration

@frozen struct StrideToIterator<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 StrideThroughIterator

An iterator for a StrideThrough instance.