Required Associated Typeswift 6.0.3Swift
Elements
A Sequence
that can contain the same elements as this one, possibly with a simpler type.
associatedtype Elements : Sequence = Self where Self.Element == Self.Elements.Element
A Sequence
that can contain the same elements as this one, possibly with a simpler type.
associatedtype Elements : Sequence = Self where Self.Element == Self.Elements.Element
import Swift
protocol LazySequenceProtocol : Sequence
A sequence on which normally-eager sequence operations are implemented lazily.
protocol Sequence<Element>
A type that provides sequential, iterated access to its elements.
associatedtype Element where Self.Element == Self.Iterator.Element
A type representing the sequence’s elements.
var elements: Self.Elements { get }
A sequence containing the same elements as this one, possibly with a simpler type.