next()
Returns the next key-value pair of a dictionary object as a tuple.
Declaration
final func next() -> (key: Any, value: Any)?Discussion
If all key-value pairs have been iterated over, this method returns nil.
Returns the next key-value pair of a dictionary object as a tuple.
final func next() -> (key: Any, value: Any)?If all key-value pairs have been iterated over, this method returns nil.