startIndex
TypeScriptget startIndex(): numberSwift declarationvar startIndex: Int { get }The index of the initial element in the column.
struct · iOS 15.0+ · SDK 27.1
struct AnyColumnA type-erased column. `AnyColumn` is a column type that conceals the type of its elements, unlike ``Column``, its typed counterpart.
get startIndex(): numberSwift declarationvar startIndex: Int { get }The index of the initial element in the column.
get description(): stringSwift declarationvar description: String { get }A text representation of the column.
get customMirror(): SDKHandleSwift declarationvar customMirror: Mirror { get }A mirror that reflects the column.
get missingCount(): numberSwift declarationvar missingCount: Int { get }The number of missing elements in the column.
get debugDescription(): stringSwift declarationvar debugDescription: String { get }A text representation of the column suitable for debugging.
get name(): stringSwift declarationvar name: String { get set }The name of the column.
set name(value: string)Swift declarationvar name: String { get set }The name of the column.
get count(): numberSwift declarationvar count: Int { get }The number of elements in the column.
indexAfter(i: number): numberSwift declarationfunc index(after i: Int) -> IntReturns the index immediately after an element index. - Parameter i: A valid index to an element in the column.
indexBefore(i: number): numberSwift declarationfunc index(before i: Int) -> IntReturns the index immediately before an element index. - Parameter i: A valid index to an element in the column.
isNil(index: number): booleanSwift declarationfunc isNil(at index: Int) -> BoolReturns a Boolean that indicates whether the element at the index is missing. - Parameter index: The location of an element in the column.
appendContentsOf(other: AnyColumnSlice): voidSwift declarationmutating func append(contentsOf other: AnyColumnSlice)Appends the contents of a column slice to the column. - Parameter other: A column that contains elements of the same type as this column.
appendContentsOf97210(other: AnyColumn): voidSwift declarationmutating func append(contentsOf other: AnyColumn)Appends the contents of another column to the column. - Parameter other: A column that contains elements of the same type as this column.
append(element?: (unknown) | null): voidSwift declarationmutating func append(_ element: Any?)Appends an optional element to the column. - Parameter element: An element.
remove(index: number): voidSwift declarationmutating func remove(at index: Int)Removes an element from the column. - Parameter index: The location of an element in the column.
distinct(): AnyColumnSliceSwift declarationfunc distinct() -> AnyColumnSliceGenerates a column slice that contains unique elements. The method only adds the first of multiple elements with the same value --- the element with the smallest index --- to the slice. - Returns: A type-erased column slice.
get endIndex(): numberSwift declarationvar endIndex: Int { get }The index of the final element in the column.
get prototype(): SDKHandleSwift declarationvar prototype: any AnyColumnPrototype { get }A prototype that creates type-erased columns with the same underlying type as the column slice. Use a type-erased column prototype to create new columns of the same type as the slice's parent column without explicitly knowing what type it is, by calling the `prototype` property's ``AnyColumnPrototype/makeColumn(capacity:)`` method. ```swift // Get a type-erased column. let someColumn: AnyColumn = dataFrame["someFeature"] // Create a new column with the same type. let newColumn = someColumn.prototype.makeColumn(capacity: 10) ```
subscript(range: SDKHandle): AnyColumnSliceSwift declarationsubscript(range: Range<Int>) -> AnyColumnSlice { get set }Accesses a contiguous subrange of the elements. - Parameter range: A range of valid indices in the column.
subscript89099(mask: Array<boolean>): AnyColumnSliceSwift declarationsubscript<C>(mask: C) -> AnyColumnSlice where C : Collection, C.Element == Bool { get }Returns a slice of the column by selecting elements with a collection of Booleans. - Parameter mask: A collection of Booleans. The method selects the column's elements that correspond to the `true` elements in the collection.
subscript36140(position: number): (unknown) | nullSwift declarationsubscript(position: Int) -> Any? { get set }Accesses an element at an index. - Parameter position: A valid index in the column.
6 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AnyColumn.decoded(_:using:)
Passing a Swift type itself is not supported.
AnyColumn.decode(_:using:)
Passing a Swift type itself is not supported.
AnyColumn.encoded(_:using:)
Passing a Swift type itself is not supported.
AnyColumn.encode(_:using:)
Passing a Swift type itself is not supported.
AnyColumn.wrappedElementType
Passing a Swift type itself is not supported.
AnyColumn.assumingType(_:)
Passing a Swift type itself is not supported.