Documentation
¶
Overview ¶
Package xslices holds slice helpers the standard slices package lacks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unique ¶
func Unique[T comparable](items []T) []T
Unique returns items with duplicates removed, keeping the first occurrence of each value in its original order. The input is not modified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.