Creates a subset of the column, given a number of initial elements.
SDKs
- macOS 10.14+
- Xcode 10.0+
Framework
- Create ML
Declaration
func prefix(_ maxLength: Int = 10) -> MLData Column<Element>
Parameters
maxLength
An integer that limits the number of elements to use from the beginning of the column. The default value is
10
.
Return Value
A new column.