Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UniqNoAlloc ¶
func UniqNoAlloc[T constraints.Ordered](list []T) []T
UniqNoAlloc removes duplicates from a slice, returning it resliced. No allocations are performed, but the list gets reordered and should not be used. Ordering is required.
func UniqNoAllocByteArray ¶
func UniqNoAllocBytes ¶
func UniqNoAllocBytes[T ~[]byte](list []T) []T
func UniqNoAllocWithComparator ¶
UniqNoAllocWithComparator removes duplicates from a slice (of some kind of ordered type). The return is resliced and entries reordered, so the original list ref should not be used. Provide the less function to compare two elements.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.