Initializer

init(from:)

Creates an integer from another integer wrapped in a data value.

Declaration

init?(from dataValue: MLDataValue)

Discussion

Use this initializer to create an integer by converting an MLDataValue with an underlying type of Int. You can confirm the data value’s underlying type by retrieving a non-nil value from intValue or by inspecting the type property.

Relationships

See Also

Using an Integer as a Data Value

var dataValue: MLDataValue

The integer wrapped in a data value.

static var dataValueType: MLDataValue.ValueType

The underlying type an integer uses when it wraps itself in a data value.