Advances to the next element and returns it, or nil if no next element exists.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
mutating func next() -> (key: Key, value: Value)?
Discussion
Once nil has been returned, all subsequent calls return nil.