---
title: "element(at:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mldatacolumn/element(at:)"
---

# element(at:)

Accesses the element at the given index.

## Declaration

```swift
func element(at index: Int) -> Element?
```

## Parameters

- `index`: A row number of the column, beginning with 0.

## Return Value

Return Value The Element at the given index; otherwise, nil.

## See Also

### Getting an element

- [subscript(_:)](createml/mldatacolumn/subscript(_:).md)
