Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Concat ¶ added in v0.0.5
func Concat[T any](slices ...[]T) []T
Concat concatenates multiple slices and returns the result.
func Deduplicate ¶ added in v0.0.8
func Deduplicate[T comparable](slice []T) []T
Deduplicate filters a slice of any comparable type, removing duplicate elements in place. Keeps the order of the original slice. The original slice can't be used after calling this function because it's likely to have a different length.
func UniqueCopy ¶ added in v0.0.8
func UniqueCopy[T comparable](slice []T) []T
UniqueCopy filters a slice of any comparable type, returning a slice of unique elements. Keeps the order of the original slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.