We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4526a93 commit df68ef5Copy full SHA for df68ef5
stdlib/public/core/Sequence.swift
@@ -323,9 +323,11 @@ public protocol IteratorProtocol {
323
/// traverse a sequence should be considered O(*n*) unless documented
324
/// otherwise.
325
public protocol Sequence {
326
+ /// A type representing the sequence's elements.
327
+ associatedtype Element
328
+
329
/// A type that provides the sequence's iteration interface and
330
/// encapsulates its iteration state.
- associatedtype Element
331
associatedtype Iterator : IteratorProtocol where Iterator.Element == Element
332
333
/// A type that represents a subsequence of some of the sequence's elements.
0 commit comments