---
title: "subscript(_:)"
framework: createml
role: symbol
role_heading: Instance Subscript
path: "createml/mluntypedcolumn/subscript(_:)-8ot43"
---

# subscript(_:)

Creates a subset of the column by masking its elements with a data column of Booleans.

## Declaration

```swift
subscript(mask: MLDataColumn<Bool>) -> MLUntypedColumn { get }
```

## Parameters

- `mask`: A Boolean column indicating whether elements should be kept (true) or removed (false) in the derived column.

## Return Value

Return Value A new column.

## See Also

### Masking elements to generate an untyped column

- [subscript(_:)](createml/mluntypedcolumn/subscript(_:).md)
- [subscript(_:)](createml/mluntypedcolumn/subscript(_:)-9hr32.md)
