Type Aliasswift 6.1.2Swift
Index
typealias Index = Inttypealias Index = Intimport Swift@frozen struct KeyValuePairs<Key, Value>A lightweight collection of key-value pairs.
@frozen struct IntA signed integer value type.
init(dictionaryLiteral elements: (Key, Value)...) Creates a new KeyValuePairs instance from the given dictionary literal.
var debugDescription: String { get }A string that represents the contents of the dictionary, suitable for debugging.
var description: String { get }A string that represents the contents of the dictionary.
var endIndex: KeyValuePairs<Key, Value>.Index { get }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 { get }The position of the first element in a nonempty collection.
subscript(position: KeyValuePairs<Key, Value>.Index) -> KeyValuePairs<Key, Value>.Element { get } Accesses the element at the specified position.
typealias Element = (key: Key, value: Value)The element type of a KeyValuePairs: a tuple containing an individual key-value pair.
typealias Indices = Range<Int>typealias SubSequence = Slice<KeyValuePairs<Key, Value>>