struct DictionaryIterator<Key, Value where Key : Hashable>

An iterator over the members of a Dictionary<Key, Value>.

Inheritance CustomReflectable, IteratorProtocol View Protocol Hierarchy →
Import import Swift

Instance Variables

var customMirror: Mirror

A mirror that reflects the iterator.


var customMirror: Mirror { get }

Instance Methods

mutating func next()

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

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


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