Structure

Dictionary.Iterator

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

Declaration

@frozen struct Iterator

Topics

Type Aliases

typealias Dictionary.Iterator.Element

The type of element traversed by the iterator.

Instance Properties

var customMirror: Mirror

A mirror that reflects the iterator.

Instance Methods

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

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

Relationships

From Protocol

See Also

Supporting Types

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.