init(sharedKeySet:)
Creates a mutable dictionary which is optimized for dealing with a known set of keys.
Declaration
init(sharedKeySet keyset: Any)Parameters
- keyset:
The
keyset, created by the Nsdictionary class method Sharedkeyset(forkeys:).
Return Value
A new mutable dictionary optimized for a known set of keys.
Discussion
Keys that are not in the key set can still be set in the dictionary, but that usage is not optimal.