subscript(_:)
Accesses the element at the specified position.
Declaration
subscript(position: Int) -> Element { borrow mutate }Parameters
- position:
The position of the element to access. The position must be a valid index of the array that is not equal to the
endIndexproperty.