---
title: "init(uniqueKeysWithValues:)"
framework: createml
role: symbol
role_heading: Initializer
path: "createml/mldatavalue/dictionarytype/init(uniquekeyswithvalues:)"
---

# init(uniqueKeysWithValues:)

## Declaration

```swift
init<S>(uniqueKeysWithValues keysAndValues: S) where S : Sequence, S.Element == (MLDataValue, MLDataValue)
```

## See Also

### Creating a dictionary type

- [init(_:)](createml/mldatavalue/dictionarytype/init(_:).md)
- [MLDataValue.DictionaryType.Key](createml/mldatavalue/dictionarytype/key.md)
- [MLDataValue.DictionaryType.Value](createml/mldatavalue/dictionarytype/value.md)
