<!--
{
  "documentType" : "article",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLDataTable/Rows-swift.struct/RandomAccessCollection-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "RandomAccessCollection Implementations"
}
-->

# RandomAccessCollection Implementations

## Topics

### Instance Properties

[`var endIndex: Int`](/documentation/CreateML/MLDataTable/Rows-swift.struct/endIndex)

The DataTable’s “past the end” position—that is, the position one greater than the last valid
subscript argument.

[`var startIndex: Int`](/documentation/CreateML/MLDataTable/Rows-swift.struct/startIndex)

The position of the first row in a nonempty DataTable. If the DataTable is empty, `startIndex`
is equal to `endIndex`.

### Subscripts

[`subscript(Int) -> MLDataTable.Rows.Element`](/documentation/CreateML/MLDataTable/Rows-swift.struct/subscript(_:))

Subscript by index. This returns a row in the data table.

### Type Aliases

[`typealias Element`](/documentation/CreateML/MLDataTable/Rows-swift.struct/Element)

The Element of a DataTable is a Row. This is represented as a Dictionary-like type
containing all Column names and their corresponding values.

---

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)