setObject(_:forKey:)
Adds a given key-value pair to the map table.
Declaration
func setObject(_ anObject: ObjectType?, forKey aKey: KeyType?)Parameters
- anObject:
The value for
aKey. - aKey:
The key for
anObject.
Adds a given key-value pair to the map table.
func setObject(_ anObject: ObjectType?, forKey aKey: KeyType?)The value for aKey.
The key for anObject.