subscript(_:)
Accesses the element at the specified position.
Declaration
subscript(position: Int) -> Element { get set }Parameters
- position:
The position of the element to access. The only valid position in a
CollectionOfOneinstance is0.
Accesses the element at the specified position.
subscript(position: Int) -> Element { get set }The position of the element to access. The only valid position in a CollectionOfOne instance is 0.