subscript(_:as:default:)
Get a value in this array as an XPCArray.
Declaration
subscript(index: Int, as type: XPCArray.Type = XPCArray.self, default defaultValue: @autoclosure () -> XPCArray) -> XPCArray { get }Parameters
- index:
The index at which to get the XPCArray.
- type:
The expected type of the resulting value.
- defaultValue:
The value to produce if no XPCArray is available at
index.
Return Value
An XPCArray value, possibly defaultValue.