<!--
{
  "documentType" : "article",
  "framework" : "TabularData",
  "identifier" : "/documentation/TabularData/AnyColumn/RandomAccessCollection-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "RandomAccessCollection Implementations"
}
-->

# RandomAccessCollection Implementations

## Topics

### Instance Properties

[`var endIndex: Int`](/documentation/TabularData/AnyColumn/endIndex)

The index of the final element in the column.

[`var startIndex: Int`](/documentation/TabularData/AnyColumn/startIndex)

The index of the initial element in the column.

### Instance Methods

[`func index(after: Int) -> Int`](/documentation/TabularData/AnyColumn/index(after:))

Returns the index immediately after an element index.

[`func index(before: Int) -> Int`](/documentation/TabularData/AnyColumn/index(before:))

Returns the index immediately before an element index.

### Subscripts

[`subscript(Range<Int>) -> AnyColumnSlice`](/documentation/TabularData/AnyColumn/subscript(_:)-1n9t9)

Accesses a contiguous subrange of the elements.

[`subscript(Int) -> Any?`](/documentation/TabularData/AnyColumn/subscript(_:)-6z1b5)

Accesses an element at an index.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)