---
title: "init(empty:)"
framework: coreml
role: symbol
role_heading: Initializer
path: "coreml/mlsequence/init(empty:)"
---

# init(empty:)

Creates an empty sequence of strings or integers.

## Declaration

```swift
convenience init(empty type: MLFeatureType)
```

## Parameters

- `type`: An doc://com.apple.coreml/documentation/CoreML/MLFeatureType instance that determines the sequence’s element type, which must be either doc://com.apple.coreml/documentation/CoreML/MLFeatureType/string or doc://com.apple.coreml/documentation/CoreML/MLFeatureType/int64.

## See Also

### Creating a sequence

- [init(strings:)](coreml/mlsequence/init(strings:).md)
- [init(int64s:)](coreml/mlsequence/init(int64s:).md)
