---
title: "init(repeating:count:)"
framework: createml
role: symbol
role_heading: Initializer
path: "createml/mluntypedcolumn/init(repeating:count:)"
---

# init(repeating:count:)

Creates a new column with a repeating value.

## Declaration

```swift
init(repeating repeatedValue: MLDataValue, count: Int)
```

## Parameters

- `repeatedValue`: An initial value for every element in the new column.
- `count`: The number of elements in the new column.

## Discussion

Discussion Use this initializer to create a column of repeating elements of a data value. let dataValueOf5 = MLDataValue.int(5) let three5s = MLUntypedColumn(repeating: dataValueOf5, count: 3) print(three5s) /* Prints...  ValueType: Int  Values:        [5, 5, 5]  */

## See Also

### Creating an untyped column

- [init(repeating:count:)](createml/mluntypedcolumn/init(repeating:count:)-7ttf1.md)
- [init(repeating:count:)](createml/mluntypedcolumn/init(repeating:count:)-q8yk.md)
- [init(_:)](createml/mluntypedcolumn/init(_:).md)
- [init(_:)](createml/mluntypedcolumn/init(_:)-33tcv.md)
- [init(_:)](createml/mluntypedcolumn/init(_:)-9no5.md)
- [init(_:)](createml/mluntypedcolumn/init(_:)-ag8f.md)
- [init(_:)](createml/mluntypedcolumn/init(_:)-5by2g.md)
- [init()](createml/mluntypedcolumn/init().md)
