An iterator over the members of a Dictionary<Key, Value>
.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
@frozen struct Iterator
An iterator over the members of a Dictionary<Key, Value>
.
SDK
Framework
@frozen struct Iterator
typealias Dictionary.Iterator.Element
The type of element traversed by the iterator.
var customMirror : Mirror
A mirror that reflects the iterator.
func next() -> (key: Key, value: Value)?
Advances to the next element and returns it, or nil
if no next element exists.
struct Dictionary.Keys
A view of a dictionary’s keys.
struct Dictionary.Values
A view of a dictionary’s values.
struct Dictionary.Index
The position of a key-value pair in a dictionary.