<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLUntypedColumn/init(_:)-33tcv",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML15MLUntypedColumnVyACSnySiGcfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates a new column of integers from a given range.

```
init(_ range: Range<Int>)
```

## Parameters

`range`

A range of integer elements for the new column.

## Discussion

Use this initializer to create a column of incrementing values from a
range.

```swift
let rangeColumn = MLUntypedColumn(3..<7)

print(rangeColumn)
/* Prints...
 ValueType: Int
 Values:        [3, 4, 5, 6]
 */
```

---

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)