subscript(_:)
Reads and writes the value at the given index as a signed integer.
Declaration
subscript<T>(index: Int) -> T? where T : SignedInteger { get set }Parameters
- index:
The position of the element to access.
Return Value
The value at the specified index in the array, otherwise nil.