subscript(_:as:)
Reads and writes the value associated with the given key as a floating point value.
Declaration
subscript<T>(key: String, as type: T.Type = T.self) -> T? where T : BinaryFloatingPoint { get }Parameters
- key:
The key the look up in the dictionary.
- type:
The expected type for the returned value.
Return Value
The value associated with key in the dictionary; otherwise, nil.