Contents

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

Describing a Column Slice

Comparing Two Column Slices

Modifying a Column Slice with a Value

Modifying a Column Slice with a Collection of Values

Hashing a Column Slice

Supporting Types

Instance Properties

Default Implementations

See Also

Typed Columns