Iterator

A type that provides the sequence’s iteration interface and encapsulates its iteration state.

Required.

Declaration

associatedtype Iterator : IteratorProtocol

See Also

Creating an Iterator

func makeIterator() -> Self.Iterator

Returns an iterator over the elements of this sequence.

Required. Default implementations provided.

associatedtype Element

A type representing the sequence’s elements.

Required.