Contents

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.