Element

A type representing the sequence’s elements.

Required.

Declaration

associatedtype Element where Self.Element == Self.Iterator.Element

See Also

Creating an Iterator

func makeIterator() -> Self.Iterator

Returns an iterator over the elements of this sequence.

Required. Default implementation provided.

associatedtype Iterator

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

Required.