Files
upstream-livekit/pkg/utils/slice.go
upstream-mirror 78704103fc
Some checks failed
Release to Docker / docker (push) Failing after 2s
Release Test Server to Docker / docker (push) Failing after 3s
Test / test (push) Failing after 16s
snapshot of https://github.com/livekit/livekit.git @ 08c5433449c106943231037d0b892895f6e92d3b (2026-09-15)
2026-09-15 16:14:22 +05:00

12 lines
133 B
Go

package utils
import (
"cmp"
"slices"
)
func DedupeSlice[T cmp.Ordered](s []T) []T {
slices.Sort(s)
return slices.Compact(s)
}