subscript(_:)
Accesses the element at the specified index in the Span.
Declaration
subscript(position: Span<Element>.Index) -> Element { borrow }Parameters
- position:
The offset of the element to access.
positionmust be greater or equal to zero, and less thancount.