Instance Method (Default implementation)swift 6.0.3Swift
makeIterator
Returns an iterator over the elements of the collection.
func makeIterator() -> IndexingIterator<Self>
Returns an iterator over the elements of the collection.
func makeIterator() -> IndexingIterator<Self>
where Self.Iterator == IndexingIterator<Self>
import Swift
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
@frozen struct IndexingIterator<Elements> where Elements : Collection
A type that iterates over a collection using its indices.
func makeIterator() -> Self.Iterator
Returns an iterator over the elements of this sequence.
override func makeIterator() -> Self.Iterator
Returns an iterator over the elements of the collection.