Instance Methodswift 6.1.2Swift

next

Advances to the next element and returns it, or nil if no next element exists.

mutating func next() -> (key: Key, value: Value)?

Once nil has been returned, all subsequent calls return nil.