Documentation
¶
Overview ¶
Package sliceutil contains common helpers for slice operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortAndCompact ¶
func SortAndCompact[T comparable](list []T, compare func(T, T) int) []T
SortAndCompact sorts and deduplicates a list using built-in equality. It mutates list in place and returns the compacted prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.