🅿️IteratorProtocol
Swift in Depth ⟩ Ch 9: Iterators, sequences, and collections
Swift ⟩
IndexingIterator<Element> - [Element].makeIterator() 回傳的 iterator
SwiftDoc ⟩ IteratorProtocol
public protocol IteratorProtocol {
associatedtype Element
mutating func next() -> Element?
}Last updated
Was this helpful?