---
title: "prefix(_:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mluntypedcolumn/prefix(_:)"
---

# prefix(_:)

Creates a subset of the column, given a number of initial elements.

## Declaration

```swift
func prefix(_ maxLength: Int = 10) -> MLUntypedColumn
```

## Parameters

- `maxLength`: The largest number of elements to use from the beginning of the column. The default value is 10.

## Return Value

Return Value A new column.

## See Also

### Selecting elements to generate an untyped column

- [subscript(_:)](createml/mluntypedcolumn/subscript(_:)-33ua2.md)
- [subscript(_:)](createml/mluntypedcolumn/subscript(_:)-9dpy7.md)
- [suffix(_:)](createml/mluntypedcolumn/suffix(_:).md)
