Dictionary
struct Dictionary<Key : Hashable, Value> : CollectionType, DictionaryLiteralConvertible
-
Merges two dictionararies. Values are updated or added to the dictionary on the left.
Parameter
Parameter dictionary: The dictionary to merge. with
self
Returns
Dictionary
Declaration
Swift
public mutating func merge<K, V>(dictionary: [K: V])
Parameters
dictionary
The dictionary to merge. with
self
Return Value
Dictionary
-
Recursively changes all
String
dictionary keys fromsnake_case
tocamelCase
Returns
New DictionaryDeclaration
Swift
public func keysToCamelCase() -> Dictionary
Return Value
New Dictionary
-
Recursively removes all keys where the value is NSNull
Returns
New DictionaryDeclaration
Swift
public func removeNulls() -> Dictionary
Return Value
New Dictionary
-
Removes keys from a dictionary that are not accessible selectors in an
NSObject
subclassReturns
DictionaryDeclaration
Swift
public mutating func filterKeys(object: NSObject) -> Dictionary
Return Value
Dictionary