4 ms·
sort.Slice and then https://pkg.go.dev/slices@master#Compact https://pkg.go.dev/slices@master#Compact
by mseepgood 4y ago
sort.Slice and then https://pkg.go.dev/slices@master#Compact https://pkg.go.dev/slices@master#Compact
- sethammons 4y agoOp had memory pressure; compact uses the same slice. This is a good solution.