IteratorProtocol
Swift in Depth ⟩ Ch 9: Iterators, sequences, and collections
具有 next() 方法的物件就可遵循 IteratorProtocol,也就是一個 iterator。
類似 JS 的 iterator protocol。
Last updated
Was this helpful?
Swift in Depth ⟩ Ch 9: Iterators, sequences, and collections
具有 next() 方法的物件就可遵循 IteratorProtocol,也就是一個 iterator。
類似 JS 的 iterator protocol。
Last updated
Was this helpful?