Type Aliasswift 6.0.1Swift
Element
The element type of a KeyValuePairs
: a tuple containing an individual key-value pair.
typealias Element = (key: Key, value: Value)
Other members in extension
Typealiases
Type members
init(dictionaryLiteral: (Key, Value)...
) Creates a new
KeyValuePairs
instance from the given dictionary literal.
Instance members
var debugDescription: String
A string that represents the contents of the dictionary, suitable for debugging.
var description: String
A string that represents the contents of the dictionary.
var endIndex: KeyValuePairs<Key, Value>.Index
The collection’s “past the end” position—that is, the position one greater than the last valid subscript argument.
var startIndex: KeyValuePairs<Key, Value>.Index
The position of the first element in a nonempty collection.
subscript(KeyValuePairs<Key, Value>.Index
) -> KeyValuePairs<Key, Value>.Element Accesses the element at the specified position.