Contents

keys

A collection containing just the keys of the dictionary.

Declaration

var keys: [String] { get }

Discussion

When iterated over, keys appear in this collection in the same order as they occur in the dictionary’s key-value pairs. Each key in the keys collection has a unique value.

See Also

Accessing keys and values