Contents

grouped(by:)

Creates a grouping of rows that the method selects by choosing unique values in a column.

Declaration

func grouped<GroupingKey>(by columnID: ColumnID<GroupingKey>) -> RowGrouping<GroupingKey> where GroupingKey : Hashable

Parameters

  • columnID:

    A column identifier.

Return Value

A collection of groups.

See Also

Creating a Row Grouping by a Column