Contents

distinct()

Generates a column slice that contains unique elements.

Declaration

func distinct() -> AnyColumnSlice

Return Value

A type-erased column slice.

Discussion

The method only adds the first of multiple elements with the same value — the element with the smallest index — to the slice.