Documentation
¶
Overview ¶
Package slicex provides slice operations absent from the stdlib slices package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dedup ¶
func Dedup[T comparable](s []T) []T
Dedup returns a new slice with duplicate elements removed, preserving order. The first occurrence of each element is kept.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.