DiscontiguousColumnSlice
A collection that represents a selection, potentially with gaps, of elements from a typed column.
Declaration
struct DiscontiguousColumnSlice<WrappedElement>Overview
A column slice contains only certain elements from its parent column. Create a slice by selecting certain elements. For example, use filter(_:) to create a slice that only includes elements with even values.
let slice = column.filter({ $0.isMultiple(of: 2) })Topics
Creating a Column Slice
Creating a Slice of Unique Elements
Creating a Type-Erased Slice
Creating a Column of the Same Type
Creating Transformed Columns
Inspecting a Column Slice
Accessing Elements
Summarizing a Column Slice
Getting Statistical Values
sum()min()max()mean()mean()standardDeviation(deltaDegreesOfFreedom:)standardDeviation(deltaDegreesOfFreedom:)