Contents

init(_:)

Creates a new column of integers from a given closed range.

Declaration

init(_ range: ClosedRange<Int>)

Parameters

  • range:

    A closed range of integer elements for the new column.

Discussion

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

let closedRangeColumn = MLUntypedColumn(3...7)
print(closedRangeColumn)
/* Prints...
 ValueType: Int
 Values:        [3, 4, 5, 6, 7]
 */

See Also

Creating an untyped column