Operator

+(_:_:)

Creates a column of integers by adding the given integer to each element of the given column.

Declaration

static func + (a: Int, b: MLDataColumn<Int>) -> MLDataColumn<Int>
Available when Element is Int.

Parameters

a

An integer.

b

A column of integers.

Return Value

A new column of integers.

See Also

Combining a Value with a Column to Generate a Column

static func + (Double, MLDataColumn<Double>) -> MLDataColumn<Double>

Creates a column of doubles by adding the given double to each element of the given column.

static func - (Int, MLDataColumn<Int>) -> MLDataColumn<Int>

Creates a column of integers by subtracting each element of the given column from the given integer.

static func - (Double, MLDataColumn<Double>) -> MLDataColumn<Double>

Creates a column of doubles by subtracting each element of the given column from the given double.

static func * (Int, MLDataColumn<Int>) -> MLDataColumn<Int>

Creates a column of integers by multiplying the given integer by each element of the given column.

static func * (Double, MLDataColumn<Double>) -> MLDataColumn<Double>

Creates a column of doubles by multiplying the given double by each element of the given column.

static func / (Int, MLDataColumn<Int>) -> MLDataColumn<Int>

Creates a column of integers by dividing the given integer by each element of the given column.

static func / (Double, MLDataColumn<Double>) -> MLDataColumn<Double>

Creates a column of doubles by dividing the given double by each element of the given column.