MutableDictionary
public class MutableDictionary<Key, Value> : Sequence, CustomStringConvertible where Key : Hashable
Mutable associations of keys and values.
-
A string representing the set
Declaration
Swift
public var description: String { get }
-
Number of items in set
Declaration
Swift
public var count: Int { get }
-
Sequence method to create an iterator for the MutableSet.
Declaration
Swift
public func makeIterator() -> Dictionary<Key, Value>.Iterator
-
An array containing just the keys of the dictionary.
Declaration
Swift
public var keys: [Key] { get }
-
An array containing just the values of the dictionary.
Declaration
Swift
public var values: [Value] { get }
-
Accesses the value associated with the given key for reading and writing.
Modifies: The setter modifies self.
Effects: The setter updates the value for the given key.
Declaration
Swift
public subscript(key: Key) -> Value? { get set }
Parameters
key
The key of the association we are looking for