Iterator
A type that provides the collection’s iteration interface and encapsulates its iteration state.
Declaration
associatedtype Iterator = IndexingIterator<Self>Discussion
By default, a collection conforms to the Sequence protocol by supplying IndexingIterator as its associated Iterator type.